If I run the following from the comman line, it works properly:

/bin/tar czvf /root/dbman_back-`date '+%m%d%Y%H%M'`-tar.gz \                    
/var/www/cgi-bin/dbman

However, it I put this in my crontab, I get the following:

Subject: Cron <[EMAIL PROTECTED]> /bin/tar czvf /root/dbman_back-`date '+
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>

/bin/bash: -c: line 1: unexpected EOF while looking for matching ``'
/bin/bash: -c: line 2: syntax error: unexpected end of file


I realize that cron is picky about ENV and such, but I can't see what I'm 
missing here.

Thanks,
Mike

-- 
  
  Never test for an error condition you don't know how to handle.  - Steinbach
 01:50:00  up 49 days,  8:50,  7 users,  load average: 0.01, 0.16, 0.37
  
  Linux Registered User #241685  http://counter.li.org



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to