gurusrin has asked for the wisdom of the Perl Monks concerning the following question:
On my systems, the jobs are on the fly. The jobs are nothing but shell scripts. These shell scripts reside on NFS and the NFS is accessible on different operating systems. Any of the system, which has this NFS mounted can execute these shell script. To ensure that resources are not hogged, we allow only few processes to be executed per system (including already running and the one that gets newly executed).
Since, multiple systems have access to same NFS, I have implemented locks using the hard-links.
Right now, the script just picks up the next available script and runs it background using 'qx{}' of Perl. However, we are seeing that sometimes these shell scripts fail to execute.
I need your advise, on how can I can check if the process failed, and if failed then how can I ensure that it is restarted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running background processes
by FreeBeerReekingMonk (Deacon) on Apr 01, 2016 at 19:49 UTC | |
|
Re: Running background processes
by GotToBTru (Prior) on Apr 01, 2016 at 13:07 UTC |