Search the web
Sign In
New User? Sign Up
sidewinder-users · Sidewinder Firewall Users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Using cron for config backup   Message List  
Reply | Forward Message #213 of 231 |
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





Wed Nov 7, 2007 9:13 pm

ramses_the_1st
Online Now Online Now
Send Email Send Email

Forward
Message #213 of 231 |
Expand Messages Author Sort by Date

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: ...
Mike
ramses_the_1st
Online Now Send Email
Nov 7, 2007
9:13 pm

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"...
Mike
ramses_the_1st
Online Now Send Email
Nov 7, 2007
9:25 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help