Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-14-2013
Registered User
 
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
[Solved] The SCRIPT command - Can we see the log file of a running session?

Hello.
This is my situation.

Code:
script .anything
ls -l .

---How can I see the content of .anything using (i.e) cat .anything?

If not possible can someone suggest a sequence to simulate a console-recorder
to "observ" from a RUNNING script session?

Thanks

Paolo

Moderator's Comments:
Please use code tags next time for your code and data.

Last edited by vbe; 02-14-2013 at 10:39 AM..
Sponsored Links
    #2  
Old 02-14-2013
Registered User
 
Join Date: Sep 2012
Location: Houston, Texas, USA
Posts: 571
Thanks: 0
Thanked 173 Times in 167 Posts
See if the script -x option might help (execution echo). Read man sh
Sponsored Links
    #3  
Old 02-14-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,636
Thanks: 118
Thanked 257 Times in 246 Posts
a tail -f .anything perhaps? But not quite sure what you want... from another session of course... (xterm or...)
    #4  
Old 02-14-2013
Registered User
 
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for your replies.
The only viable solution I' ve found is:
script -f (flush output after each write) .filename

paolo
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
running a script in a ftp session jaituteja Shell Programming and Scripting 7 02-03-2012 10:18 AM
running a bash script even after logging out from the current session nks342 Shell Programming and Scripting 4 11-08-2011 03:29 AM
running script in ftp session sfaqih Shell Programming and Scripting 3 11-16-2008 04:41 AM
Running a script for every ftp session h3llh0l3 Shell Programming and Scripting 5 10-23-2008 01:38 PM
Running a script without a terminal session jjinno Shell Programming and Scripting 3 10-03-2007 01:50 AM



All times are GMT -4. The time now is 06:35 PM.