in reply to Re^3: more problems running a program that hogs the termnial
in thread more problems running a program that hogs the termnial
I tried using IOC::Open2, assuming I can write "quit" (which will kill the program) but since script isn't going anywhere...my $pid = open(DUMP, "top|") || die $!; # or 'prstat' will work while ( <DUMP> ) { chomp; print "$_\n"; } kill 9, $pid;
|
|---|