Solved

AIX 4.3 Crontab reached a symbol that is not expected... What now?

Posted on 2006-06-19
2
2,545 Views
Last Modified: 2013-11-17
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!
0
Comment
Question by:_SKIN_
2 Comments
 
LVL 2

Accepted Solution

by:
enyamada earned 200 total points
ID: 16935674

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.

Good luck.
0
 

Author Comment

by:_SKIN_
ID: 16936370
Thanks, that worked.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now