in reply to process management
Drop the inner my:
my $pid = `pgrep -f _collectDataScript.pl`; if ($pid) { while($pid) { print "Waiting for process $pid"; sleep(10); $pid = `pgrep -f _collectDataScript.pl`; } }
Also note that the backticks yield the output of its command with a newline appended.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|