LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-15-2006, 10:38 AM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
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.
 
Old 10-15-2006, 11:57 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 10-15-2006, 08:20 PM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Hi, jlliagre

Thank you to tell me the great nohup. Very Helpful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logout of X session from a command line interface? pwc101 Linux - Software 10 05-02-2006 12:01 PM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 06:31 AM
Command to start remote KDE session on Debian The_Fed Linux - Newbie 1 04-19-2004 04:31 PM
Pipe telnet session output to text file joshlamerritt Linux - Software 3 02-10-2004 08:42 PM
Telnet session locks up on ls command rgutendorfjr Linux - Networking 2 10-08-2003 01:37 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration