strider88 has asked for the wisdom of the Perl Monks concerning the following question:
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++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Killing a shell script from within a perl script
by jettero (Monsignor) on Mar 03, 2010 at 16:49 UTC | |
by strider88 (Initiate) on Mar 03, 2010 at 17:12 UTC | |
by almut (Canon) on Mar 03, 2010 at 18:49 UTC | |
by strider88 (Initiate) on Mar 09, 2010 at 21:58 UTC | |
|
Re: Killing a shell script from within a perl script
by almut (Canon) on Mar 03, 2010 at 17:07 UTC | |
by strider88 (Initiate) on Mar 04, 2010 at 01:49 UTC | |
|
Re: Killing a shell script from within a perl script
by BrowserUk (Patriarch) on Mar 03, 2010 at 17:11 UTC | |
|
Re: Killing a shell script from within a perl script
by walto (Pilgrim) on Mar 03, 2010 at 17:35 UTC |