- Mar 27, 2007
- 291
- 0
- 76
I have this shell script scheduled to run periodically doing some maintenance duties. Now, lots of commands have accumulated into this one shell script, including but not limited to database exports, checks, file backups (tar & gzip combination), etc, etc.
Now I really would like to have the shell script to write a log file of everything it does. How should I go around to implement it? All I need is that it writes the output I would see when running it manually in a shell to a log file, no need for fancy time stamping or anything.
Thanks a bunch.
Now I really would like to have the shell script to write a log file of everything it does. How should I go around to implement it? All I need is that it writes the output I would see when running it manually in a shell to a log file, no need for fancy time stamping or anything.
Thanks a bunch.