Issue with Cron

Hi Gurus,

I need to run a script every saturday at 7:05 PM. Below command is working in x86_64.

05 19 * * 6 /apps/informatica/scripts/inf_rest.ksh

However when I tried in HP-UX it is giving the below error.

crontab: error on previous line; unexpected character found in line.

Please shed some light on this.

Regards,
Sam

You have a "junk" character in your crontab somewhere. Or a poorly formed command line. You should only change crontab entries with the

crontab -e 

command - or maybe vi if you know what you are doing.

Please post the the output of

crontab -l

Often the junk is a trailing blank line in the crontab

Probably delete this cronjob and recreate same without any trailing space or lines. I have heard that HP-UX use more traditional crontab validations.

The easy way to generate that error message from a crontab command is when the crontab contains something like:

SHELL=/usr/bin/shell

HP-UX crontab doesn't like lines which are not normal schedule lines or comment lines.