Solved

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

Posted on 2006-06-19
2
2,727 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

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…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

710 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