I am using a bash script to copy files from my production server to a standby server, really just a simple backup. I have been trying to figure out how to do 2 things with bash.
1) How do I direct an echo statement out to a file? Logging what commands were run from the script.
2) How do I get a date and time from bash? I would like to date stamp the log file.
Thanks for everyones help,
Wes Hegge
1) How do I direct an echo statement out to a file? Logging what commands were run from the script.
2) How do I get a date and time from bash? I would like to date stamp the log file.
Thanks for everyones help,
Wes Hegge