Re: Close a Running Sub-Process
- From: "mumebuhi" <mumebuhi@xxxxxxxxx>
- Date: 30 Aug 2006 14:40:24 -0700
# start
use strict;
use warnings;
my $fh = undef;
# there is a '|' at the end
my $child_process = "ssh username@host tail --follow=name
file_to_be_tailed |";
open $fh, $child_process || Carp::confess("can't open $child_process:
$!");
while (<$fh>) {
chomp;
if (/successful/) {
last;
}
}
close $fh;
# end
.
- References:
- Close a Running Sub-Process
- From: mumebuhi
- Re: Close a Running Sub-Process
- From: axel
- Close a Running Sub-Process
- Prev by Date: Re: Close a Running Sub-Process
- Next by Date: Re: Threading - share
- Previous by thread: Re: Close a Running Sub-Process
- Next by thread: Re: Close a Running Sub-Process
- Index(es):
Relevant Pages
|