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 }
In reply to Stop Command In Perl by anshumangoyal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |