[Solved] The SCRIPT command - Can we see the log file of a running session? | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


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

[Solved] The SCRIPT command - Can we see the log file of a running session?

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-14-2013
paolfili paolfili is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 6 March 2013, 7:47 AM EST
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
rdrtx1 rdrtx1 is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 23 September 2014, 12:09 PM EDT
Location: Houston, Texas, USA
Posts: 675
Thanks: 0
Thanked 203 Times in 195 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 online now Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 31 October 2014, 5:04 PM EDT
Location: Switzerland - GE
Posts: 5,840
Thanks: 162
Thanked 417 Times in 392 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
paolfili paolfili is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 6 March 2013, 7:47 AM EST
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
Closed Thread

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 05:19 PM.