FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
Related topics
Fortran Tutorials(77)
Should I stick to Windows?
Wordpress uploads
[PHP] Faking Shell Access Through PHP
Shell makes amazing profits again
SSH Secure Shell 3.2.9
The matrix online hints and tips
Red 5 flash server
PHP that creates subdomain, ftp account, and mysql database?
Ok. Sell Me on Linux
I want to try Linux
PHP Free Hosting packages don't allow any more than basics
Advice on switching OS [Windows --> UNIX? Linux?]
escapeshellcmd seems to blank my user input
Reply to topic    Frihost Forum Index -> Scripting -> Others

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