How do you change the definition of standard output within a csh script?
I have a shell script with a lot of "echo" commands and I want their
output to automatically go to a different file every day. I don't want
to have to type a bunch of redirection symbols.
The shell script is running as a cron job. I tried to redirect the file
00 2 * * 1-5 ~admin/bkup.test > ~admin/bkup_report/`date +%b_%d_%Y` 2>&1
But, when I did that, the output was put into a file with the name
Fri Jan 22 02:00:00 CST 1993
When I run the same command that I used in the cron at the normal ksh
prompt (since cron runs in ksh), it does create the filename I want.
Thanks in advance...