Operating System - HP-UX
1833449 Members
3081 Online
110052 Solutions
New Discussion

Re: How to record the text in the CDE xterm

 
SOLVED
Go to solution
Kenneth_18
Frequent Advisor

How to record the text in the CDE xterm

Hi,

How do I record all the text in an CDE xterm like when I telnet to a certain server and do an ll, I want to be able to save all the text in my xterm automatically to a file for later review.

Thanks in advance!
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor
Solution

Re: How to record the text in the CDE xterm

Hi,

Look at the man page of "script".

After telnet'ing to the box, run the command 'script outfile'. This will spawn a subshell and start logging all the commands and their output into the file outfile. You can type "exit" and come out of it.

You can vi 'outfile' and view the contents.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
T G Manikandan
Honored Contributor

Re: How to record the text in the CDE xterm

#script
Michael Tully
Honored Contributor

Re: How to record the text in the CDE xterm

The script command will do this job, whether you in a xterm, dtterm or standard login session.
e.g.
# script /tmp/out.txt

# commands
# commands
# exit

You can then even email it to yourself should you wish.

# cat /tmp/out.txt | elm -s "my output" my.name@mydomain.com
Anyone for a Mutiny ?