Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

At job now kicking off

Posted on 2004-09-30
3
Medium Priority
?
228 Views
Last Modified: 2010-04-20
I am trying to do an at job.  And it never gets kicked off.  I have tried it two different ways and it doesn't work either way

at now +1min < /var/www/html/test.sh

at -f /var/www/html/test.sh now

They just sit in the at cue and never run.  

any suggestions.  

Basically what I am trying to do is.  I run a program called a.php if in that program something happens I call a script call killcue.sh.  This shell script will kill the process where the name is a.php, sends me an email to let me know the a.sh was killed, and then killcue.sh should start a.php agian.

Killcue.sh is killing a.php and sending me an email however it is not restarting the program, so I was going to try an at job to get it going.

a.php is an infinate loop that looks for incoming data from a database
0
Comment
Question by:jmsloan
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 150 total points
ID: 12190993
Have you looked in the cron log - something like /var/cron/log for errors?
0
 
LVL 3

Author Comment

by:jmsloan
ID: 12192408
I tried to run the at job right from the command

at -f /var/www/html/test.sh now + 1 minute

it puts the job in the cue but will not run it.

Anyone know why
0
 
LVL 3

Author Comment

by:jmsloan
ID: 12192437
Well it's looks like the spool directory wasn't there from the log files.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

916 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