anshumangoyal has asked for the wisdom of the Perl Monks concerning the following question:
Is there any good way to do that. I dont want to kill the process and this is performed on windows machine.if (! (open ($fileHandler, '-|', "$Command 2>&1"))) { die "Cannot Open Command\n"; } my $ofh = select $fileHandler; $| = 1; select $ofh; while (<$fileHandler>) { sleep 30; print $_; ## Here i want to stop the command }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stop Command In Perl
by BrowserUk (Patriarch) on Jul 12, 2012 at 19:08 UTC | |
|
Re: Stop Command In Perl
by monsoon (Pilgrim) on Jul 12, 2012 at 16:43 UTC | |
by anshumangoyal (Scribe) on Jul 12, 2012 at 17:38 UTC | |
by mbethke (Hermit) on Jul 12, 2012 at 17:58 UTC | |
by monsoon (Pilgrim) on Jul 12, 2012 at 18:40 UTC | |
by mbethke (Hermit) on Jul 12, 2012 at 22:21 UTC | |
|