Results 1 to 5 of 5
Dear forum friends,
I have a shell script which contains 5 linux commands. I want to save both commands as well as each command output into separate log file. How ...
- 04-23-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 59
save command and command output
Dear forum friends,
I have a shell script which contains 5 linux commands. I want to save both commands as well as each command output into separate log file. How can I do this.
Thanks & regards
Savook
- 04-23-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
What are you getting at? Do you want one log file to contain the command name + arguments and the other the output of the commands? Please show current script. Thanks.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-24-2009 #3Just Joined!
- Join Date
- Apr 2009
- Posts
- 59
I want a single log file to contain the command name + arguments and also the output of the commands.
Thanks & regards
Ganesh
- 04-24-2009 #4
I'm not sure about getting separate log for each command ...but to log all commands and output use script command
man script- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 04-24-2009 #5


Reply With Quote
