Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

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

Shell Programming and Scripting


Closed    
 
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:
[Solved] The SCRIPT command - Can we see the log file of a running session? Please use code tags next time for your code and data.

Last edited by vbe; 02-14-2013 at 11:39 AM..
Sponsored Links
    #2  
Old Unix and Linux 02-14-2013
rdrtx1 rdrtx1 is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 30 November 2016, 11:31 AM EST
Location: Houston, Texas, USA
Posts: 873
Thanks: 0
Thanked 299 Times in 286 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 offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 2 December 2016, 3:45 PM EST
Location: Switzerland - GE
Posts: 6,348
Thanks: 245
Thanked 524 Times in 487 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 Linux

paolo
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 11:18 AM
running a bash script even after logging out from the current session nks342 Shell Programming and Scripting 4 11-08-2011 04:29 AM
running script in ftp session sfaqih Shell Programming and Scripting 3 11-16-2008 05:41 AM
Running a script for every ftp session h3llh0l3 Shell Programming and Scripting 5 10-23-2008 02:38 PM
Running a script without a terminal session jjinno Shell Programming and Scripting 3 10-03-2007 02:50 AM



All times are GMT -4. The time now is 08:18 PM.