Log date

Mario Frechette mario at technicite.ca
Thu Mar 27 17:21:46 UTC 2008


hello
I am trying to get a date in my log file name for a script that runs  
daily in cron and  i can see in syslog
that the sript runs but no date on the log file

this is how it looks in crontab

43 12  *   *   1-5   /bin sh rsync.sh >/home/eric/backup.log.`date 
"+%d%m%y"`

should I put some commands in the script itself ?
any idea how to do this

Thanks

Mario Fréchette







More information about the ubuntu-users mailing list