How to log command output from telnet session even after logout from the remote serve
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.
Thanks a lot.
The "script" command logs the interactive dialog between the user and the program. This dialog stops when you log out.
If you want to keep the output of a running program after leaving the shell, use the "nohup" command.
Thank you to tell me the great nohup. Very Helpful.
|All times are GMT -5. The time now is 02:59 PM.|