My thanks to [EMAIL PROTECTED] and Arthur H. Johnson II
<[EMAIL PROTECTED]> for helping to alleviate my stupidity. ;-) It seems
that crond was tripping over the % rather than the +:
>actually its the % that crond is interpreting as newline. use
>/usr/local/sbin/backup.bash "`date +\%Y-\%m-\%d
I do this all the time, but what I do is the following:
# twords beginning of file
export DATE=`date +%Y%m%d`
# where I want to call the variable
tar cvf /backup/$DATE.tar /appl /home/samba
On Thu, 7 Mar 2002, Eric Sisler wrote:
> Greetings,
>
> I'm trying to insert the date command in a c
actually its the % that crond is interpreting as newline. use
/usr/local/sbin/backup.bash "`date +\%Y-\%m-\%d`" Fri
steve
-Original Message-
From: Eric Sisler [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 15:51
To: [EMAIL PROTECTED]
Subject: Using the date command in a cro
Greetings,
I'm trying to insert the date command in a crontab entry, and I keep
getting an error. I've tried just about every possible syntax I can think
of, so I'm either being stupid or what I want can't be done. I've tried
the following entries (minus the time/date/day fields):
/usr/loca