Link to home
Start Free TrialLog in
Avatar of jmsloan
jmsloan

asked on

At job now kicking off

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
ASKER CERTIFIED SOLUTION
Avatar of liddler
liddler
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jmsloan
jmsloan

ASKER

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
Avatar of jmsloan

ASKER

Well it's looks like the spool directory wasn't there from the log files.