Re: Cronjob script with date stamp?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Scott Ehrlich wrote:

- Have the script dump the results of the job to a text file. I tried this with /path/to/dump my switches -v >> /home/me/dump.log

But that just produced an empty file.

Try appending "2>&1" (without the quotes) to that command.

- Have the dump file be date-stamped with the date it was executed.

FILENAME=my-backup-`date +%Y%m%d`.dump
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux