Problem : AIX 4.3 Crontab reached a symbol that is not expected… What now?

Problem : AIX 4.3 Crontab reached a symbol that is not expected… What now?

I am trying to add a line into cron. I want to check my print queue status every minute and if one is down, I want it to push it back up. So I entered this into crontab…

“0-59/1 * * * enq -WAs | grep $(dspmsg -s 2 qstat 33) | cut -d’ ‘ -f1 | xargs enablek”

And AIX returned this error…

“/tmp/crontab_qKbUa” 1 line, 85 characters
A line of the crontab file:
0-59/1 * * * enq -WAs | grep $(dspmsg -s 2 qstat 33) | cut -d’ ‘ -f1 | xargs enablek

contains the following error:
0481-079 Reached a symbol that is not expected.

I do not know enough about cron to figure this one out myself. Thanks for any help in advance!


Solution : AIX 4.3 Crontab reached a symbol that is not expected… What now?

Hi,

AIX cron does not accept the / notation. If you want to run every single minute the script, try

* * * * * enq -WAs | grep $(dspmsg -s 2 qstat 33) | cut -d’ ‘ -f1 | xargs enablek

instead.