You are not logged in.

#1 2010-03-01 12:45:33

skazhy
Member
From: Riga, Latvia
Registered: 2009-07-01
Posts: 46

`failed parsing crontab` error

Hi!

I made a script that downloads an image, and added it to crontab -e -u skazhy
like this:

* /10 * * * * /home/skazhy/script

But it does not complete and I get this error ir crond.log:

Mar  1 14:38:01 myhost crond[3077]: failed parsing crontab for user skazhy: /10 * * * * /home/skazhy/script

The script has no errors. I haven't used cron before, what's wrong here?

Offline

#2 2010-03-01 14:09:32

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: `failed parsing crontab` error

there is a typo in the crontab entry, a space between first asterisk and "/10"

it shuld be

*/10 * * * * <script>

Last edited by vik_k (2010-03-01 14:11:06)


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

Board footer

Powered by FluxBB