Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 Unix and Linux 02-14-2013
rdrtx1 rdrtx1 is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 13 January 2015, 10:34 AM EST
Location: Houston, Texas, USA
Posts: 681
Thanks: 0
Thanked 206 Times in 198 Posts
See if the script -x option might help (execution echo). Read man sh
Sponsored Links
    #3  
Old Unix and Linux 02-14-2013
vbe's Unix or Linux Image
vbe vbe is online now Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 26 April 2015, 5:31 AM EDT
Location: Switzerland - GE
Posts: 6,026
Thanks: 182
Thanked 452 Times in 423 Posts
a tail -f .anything perhaps? But not quite sure what you want... from another session of course... (xterm or...)
    #4  
Old Unix and Linux 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 Unix or Linux Image

paolo
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image 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:44 AM.