How to log command output from telnet session even after logout from the remote serve
Hi, All
I want to telnet into a remote server and execute a program in
the remote server from my telnet sessoin. All the command output
of the program can be logged as a file in the remote server even
after logout from the remote server.
I think solaris provides script command to perform the function to
log all command output of a terminal. I did as follows.
Telnet into the remote server. Get the script work for logging the command output.
# script -f log.txt
Script works fine while I login into the remote server. But after logout from the remote server, script stop to log all. I tried to
start the script from background. But I failed to do it.
Please help.
Thanks a lot.
|