Hi, I have setup this command to run nightly via a crontab. It works fine from the root shell (tcsh) but doesn't seem to run from the crontab: /bin/cp /etc/master.passwd /etc/master.passwd_backup_`/bin/date +%Y%m%d` It's got something to do with the backticks but I can't find a way around it.. Can anyone help? Thanks.
On Tue, Apr 11, 2006 at 04:10:52PM +1000, Adrian wrote:> Hi, > > I have setup this command to run nightly via a crontab. It works > fine from the root shell (tcsh) but doesn't seem to run from the > crontab: > > /bin/cp /etc/master.passwd /etc/master.passwd_backup_`/bin/date +%Y%m%d`escape % /bin/cp /etc/master.passwd /etc/master.passwd_backup_`/bin/date +\%Y\%m\%d` By. Dmitriy
2006/4/11, Adrian <adrian.jfl@gmail.com>:> I have setup this command to run nightly via a crontab. It works > fine from the root shell (tcsh) but doesn't seem to run from the > crontab:Why? Haven't you /var/backups ? It runs daily (periodic), if master.passwd has chaged it will be copied in /var/backups. -- Cris, member of G.U.F.I Italian FreeBSD User Group http://www.gufi.org/