I have a perl script that repeatedly runs a shell script within a while loop, as
Sometimes the shell script takes more time than it is supposed to take(say 10 min), during when I would like to stop the shell script and skip to the next iteration. Could you please tell me how I can achieve this ?LOOP1:while($run_count<max) { $shell_out = system("./sh1.sh"); $run_count++; }
In reply to Killing a shell script from within a perl script by strider88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |