Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
lsuser for specific number of users listed in a file 11 101
Skill Development 15 163
Execute multiple curl cmds with sleep and send output to file 10 89
aix unix tar error 3 43
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

920 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

14 Experts available now in Live!

Get 1:1 Help Now