cron entry error

I am using the following cron entry to run a cron job every 4 hours and
it is rejecting it:

0 */4 * * * /home/location/scriptname

When I put this entry in cron is errors with: 0481-079 reached a symbol that is not expected.

This is an AIX 5.3 system

Any ideas?

Thanks

Hey, you only need to post the question once. Either it'll get answered or it won't but posting it more than once won't help and will just indicate you don't know where to post your question.

Carl

I thought this was a better forum after I posted it on the other. I figured different users in this then the other.
sorry

The syntax of the second field is invalid : */4
You must indicate the hours explicitly

0 0,4,8,12,16,20 * * * /home/location/scriptname

From crontab man page

Jean-Pierre.

and you can check the log file for the same ( if any errors)

/var/cron/log/

I have also read somewhere that */4 works in cron, but in solaris it never worked for me... don't use this method.

Yea, it works in Linux but not in Solaris, AIX or any of the "real" :smiley: Unices. While I've been mucking around with Linux since 1994 or so (Slackware), I was a production Solaris admin before I worked on production Linux boxes.

Carl