1) run a job
2) if the job completes properly, it will do a "touch file.name"
3) if the "file.name" exists, execute the next job
I think NFS is killing me, though--the file may get created, but the perl program is executed so quickly that it doesn't see the "file.name" in time and exits.
Here is what's not working:-
The dependency file *did* get created, but it took a few miliseconds to show up. How can I prevent abnormal termination? I don't think "sleep" is working the way I expect.for ($c = 1; $c < 17; $c++) { if (fork() == 0) { exec ("CAD program with $c options...details not impor +tant"); exit; } wait; system ("sleep 20"); #so NFS gets updated...? if (-e "cmdos/$n[$c].done") { $complete = 1; #in other words: do nothing } else { die ("Dependency file $n[$c].done did not get created- +-exiting!\n"); } }
Thank You,
-Fiddler42
In reply to Running multiple jobs with dependencies by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |