Operating System - HP-UX
1827459 Members
3997 Online
109965 Solutions
New Discussion

How to execute command after script /dev/tty

 
Carlos Roberto Schimidt
Regular Advisor

How to execute command after script /dev/tty

I want monitor one session from user, and I need put in user .profile

script /dev/ttyxx
myprog

But myprog is only execute after execute exit.

How I can figure out this?
I??d apreciate any help

Carlos R. Schimidt
2 REPLIES 2
malay boy
Trusted Contributor

Re: How to execute command after script /dev/tty

Hi carlos,
May I know what do you mean by monitor.Is it mean that you want to know every keystroke user key in?.
If this is the case I know one software which can monitor every keystrole called power broker:
http://www.symark.com/powerbroker.htm.



regards
mB
There are three person in my team-Me ,myself and I.
A. Daniel King_1
Super Advisor

Re: How to execute command after script /dev/tty

export SHELL=mycommand ; script

This will run "mycommand" under script, and capture all screen output to the file "typescript".

This is messy. Might this work better internally (presuming ksh):

exec 1> 2>&1 LOGFILE.txt
Command-Line Junkie