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

CRONTAB problems.

Status
Not open for further replies.

mkoert2

Technical User
Aug 15, 2006
8
NL
Hi

does anybody now how to silve the following problem.
When i put into crontab the following it does not work.

30 12 * * * /bin/find /app/cls/Fundtech/1.0.0/log -mtime +4 -exec rm -f {} \;

when i do it by hand from the prompt it works fine. But from the crontab i get a error.

fundt1 : CMD ( /bin/find /app/cls/Fundtech/1.0.0/log -mtime +4 -exec rm -f {} ; ) : PID ( 107338 ) : Wed Sep 13 08:20:00

Marcel
2006
Cron Job with pid: 107338 Failed
! An exec system call failed with errno 13.
Wed Sep 13 08:20:00 metdst 2006

 
Have you tried with /usr/bin/find?

All I ask of you
Is make my wildest dreams come true
 
Or maybe try escaping the final \, like \\

All I ask of you
Is make my wildest dreams come true
 
errno 13 means EACCESS - Permission denied

are you sure the same userid is used from cron and when you try by hand?

you should also have gotten a second mail with the stdout and stderr of the cron job.


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top