Solved

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

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.

778 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