Solved

At job now kicking off

Posted on 2004-09-30
3
224 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
[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
3 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 50 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Recover Lacie Edmini data. 11 77
Setup Ubuntu 16.04 to use LDAP for user login and authentication 2 266
RPM creation 6 49
simple bash script needed to unpack tar.gz 4 61
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 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…

738 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