I missed the part in the crontab man page the you need to escape the
% with a \ so now it works.
Mike
-- In sidewinder-users@yahoogroups.com, "Mike" <ramses_the_1st@...>
wrote:
>
> I am trying to get a cron job going to do a config backup of my EM
> server and I am running into a strange issue. Here is the beginning
of
> the command:
>
> /usr/sbin/cf config backup loc=remote filename=fwbackup`date +%y%m%
d`
> directory=/data/fwbackup/
>
> The job will run just fine from the command line, but when run from
> cron it blows up using the date function. The cron log looks like
this:
>
> /usr/sbin/cf config backup loc=remote filename=fwbackup`date +)
>
> Is there a know issue with using the date function in cron? It just
> seems odd that it will work from the cli but not in cron.
>
> Mike
>