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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crontab job not running? 1

Status
Not open for further replies.

joeythelips

IS-IT--Management
Aug 1, 2001
305
0
0
IE
Hi
I am trying to add a cronjob which will zip log files at the end of the day. I have added the following command

15 00 * * 0-6 find /opt/gtx/common/logs/testcompress -mtime +1 -exec gzip -f {} \;

I can't seem to get it to work, has anyone any suggestions?
 
One common problem is that a program, gzip in this case, is not in the path.
Try
Code:
15 00 * * 0-6 find /opt/gtx/common/logs/testcompress -mtime +1 -exec /usr/local/bin/gzip -f {} \;
assuming gzip is in /usr/local/bin

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top