FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

How to record shell commands

 


svecia
I want to record all input and output of shell-commands.
I know about tee and redirect with > and | but thats not it .
I would like to do some work to put in example for others to read so
I want promts my commands and output recorded to a file.
I run bash on linux but I could switch to another shell

Is there a command to do that ?
MrBlueSky
I don't have a Linux box nearby right now, so I can't test it. But try this:

Code:

# script session.log


It should record both your commands and their output to the file "session.log".
svecia
Yes I tried script and it was what I was looking for
Thank You wery much
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.