Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cron Jobs Not Running

Status
Not open for further replies.

TDKMan

MIS
Jun 2, 1999
53
US
We are switching our logs daily and have created a cron job to automate this process. Recently, we added a few lines to the cron job to rename the "old.log" to the following format: M/D/Y-H/M. The line looks similar to this:

* * * * * mv /opt/pkg/FireWall-1*/log/old.log /var/test/logs/`date +"%m%d%y-%H%M"`.log

This command works properly when I am at the console, but when the cron job runs it does not work. I receive the following message in my inbox from root: "Syntax error: EOF in backquote substitution"

Can anyone please point me in the right direction of what I am missing or need to change in this cron job?

Thanks in advance. Joe


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top