Gossamer Forum
Home : General : Internet Technologies :

Darn crontab :(

Quote Reply
Darn crontab :(
Hi guys,

Anyone got any pointers as to why;

0 0 */6 * perl /var/home/test/foobar.net/cgi-bin/dev/foo/script.cgi

...doesn't seem to work?

It gives me the following error when trying to setup via SSH;

Quote:
linkssql@ns1 admin $ crontab cron.txt
"cron.txt":3: bad day-of-week
errors in crontab file, can't install.

I can't see any obvious mistakes ..but my head is hurting from staring at it for so long. ANY ideas are much appreciated Cool

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Darn crontab :( In reply to
Hey Andy,

You're missing the day-of-week field. You need to add either a * or 0-6:

Code:
0 0 */6 * * perl /var/home/test/foobar.net/cgi-bin/dev/foo/script.cgi

~Charlie
Quote Reply
Re: [Chaz] Darn crontab :( In reply to
In Reply To:
Hey Andy,

You're missing the day-of-week field. You need to add either a * or 0-6:

Code:
0 0 */6 * * perl /var/home/test/foobar.net/cgi-bin/dev/foo/script.cgi

~Charlie

LMAO ... you are a saviour! Its amazing how stupid you can be when you stare at the same code for ages :(

Thanks again.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!