Solved

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

Posted on 2006-06-19
2
2,665 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

808 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