using cron to start and stop a bash script
I'm trying to use cron to run a shell script at a specific time, then run another script to stop the initial script 3 and a half hours later. The script will start properly, and running the stop script manually stops the process, but it doesn't seem to run through cron and stop the process. here are the relevant files...
START.SH Code:
#/bin/bash Code:
#!/bin/sh Code:
SHELL=/bin/sh |
If you have a crond environment where those commands aren't in the path, try using the full path to the command. On my system, stop.sh would be:
Code:
#!/bin/sh |
still a no go. I do a ps ax after the stop.sh script is supposed to have run and the start script is still up and running along with the producer process it starts...
|
All times are GMT -5. The time now is 10:19 PM. |