1834207 Members
2775 Online
110066 Solutions
New Discussion

Like script command

 
SOLVED
Go to solution
sanwin
Frequent Advisor

Like script command

Hi,
I need the command for the following scenario.
I am executing some commands for demonstration in one terminal and the user who has logged in another terminal should be able to see what i am running currently or doing currently.


I tried script command but it creates the file only after i exit the shell.

I want the file to be dynamic somehow.

Any help please !!

thanks!!

regards,
sanwin.
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: Like script command

Some workarounds:

1) Share the client window (e.g. if you are using a terminal emulator from windows use something like netmeeting ...)

2) Connect over the MP to the console. The console will be shared - one user have write access, other users can only read at a time.

Well, it depends if you want to grant this access to the other user.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Laurent Menase
Honored Contributor
Solution

Re: Like script command

Should work, on my system 11.11 it is working.
what /usr/bin/script
/usr/bin/script:
$Revision: B.11.11_LR
Fri Oct 27 00:41:13 PDT 2000 $

x1> script -a /tmp/toto
x2> tail -f /tmp/toto

x1> ls /tmp
toto tatat titi
x2> "
x1> ls /tmp
toto tatat titi
"

The delay is only 1 second.

Else you have sharedX
sanwin
Frequent Advisor

Re: Like script command

Thanks Laurent!! This is the command option i was looking for. Thanks!!

Thanks Torsten for your reply!!


regards,
sanwin.
Torsten.
Acclaimed Contributor

Re: Like script command

You got the same answer about "script" in your other thread already

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1234080

so I thought you are looking for other methods.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!