rzs96 has asked for the wisdom of the Perl Monks concerning the following question:
#__________________________________________________________________ # # logmining'check: Check to see if the logs are still processing. + #__________________________________________________________________ sub logmining'check { my ($pid) = @_; print STDERR "CHECK: ps -ef | grep $pid.log\n\n"; #&logmining'finish (); my $ps_check = `ps -ef | grep $pid.log`; while ($ps_check =~ m|gunzip|) { sleep (60); $ps_check = `ps -ef | grep $pid.log`; if ($ps_check !~ m|gunzip|) { $ps_check = ''; &logmining'finish (); last; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get more than 80 characters out of PS
by Nkuvu (Priest) on Jun 28, 2005 at 20:37 UTC | |
|
Re: How to get more than 80 characters out of PS
by tlm (Prior) on Jun 28, 2005 at 20:38 UTC | |
|
[OT] Re: How to get more than 80 characters out of PS
by cmeyer (Pilgrim) on Jun 28, 2005 at 21:29 UTC | |
by tlm (Prior) on Jun 29, 2005 at 03:21 UTC | |
by merlyn (Sage) on Jun 29, 2005 at 09:44 UTC | |
|
Re: How to get more than 80 characters out of PS
by crashtest (Curate) on Jun 29, 2005 at 03:11 UTC | |
|
Re: How to get more than 80 characters out of PS
by fmerges (Chaplain) on Jun 28, 2005 at 21:03 UTC | |
|
Re: How to get more than 80 characters out of PS
by anonymized user 468275 (Curate) on Jun 29, 2005 at 09:03 UTC |