the easiest solution I found is to find out the pid of the processes and then add following entries:
0 20 * * * kill -CONT pid
30 6 * * * kill -STOP pid
that seems to work very fine...
but what, if I don't know the pid exactly, because the parent process opens child-processes, closes them and opens other ones with other pids?
Maybe it would be possible to write a shell script, that makes a "ps -aux | grep myapp" and extracts the pid?
Also I don't want to start a job while the other one still is working...
maybe a second shell script, that looks if there is any process in "ps -aux | grep myapp"?
Hmm..seems to be difficult...
Has anyone some ideas what would be the best way to manage this problem for this case?
I've never wrote a shell-script before...
Last edited by merlin23; 12-07-2004 at 04:11 AM.