On May 11, 9:29 pm, dery...@gmail.com ("C.DeRykus") wrote:
> On May 11, 12:56 am, weizhong@gmail.com (Weizhong Dai) wrote:
>
>> ...
>
> $pid = open(my $readme, "program arguments |")
> or die "Couldn't fork: $!\n";
> my $timeout = 5;
> eval {
> local $SIG{ALRM} = sub { die
On May 11, 12:56 am, weizhong@gmail.com (Weizhong Dai) wrote:
> Hi all,
>
> -
> $pid = open(README, "program arguments |") or die "Couldn't fork: $!\n";
> while () {
> # ...}
>
> close(README)
> --
>
> my problem is: I read fr
Weizhong Dai asked:
> -
> $pid = open(README, "program arguments |") or die "Couldn't fork:
> $!\n";
> while () {
> # ...
> }
> close(README)
> --
>
> my problem is: I read from README, but if waiting for next input is
> timeou
2010/5/11 Weizhong Dai :
> Hi all,
>
> -
> $pid = open(README, "program arguments |") or die "Couldn't fork: $!\n";
> while () {
> # ...
> }
> close(README)
> --
>
> my problem is: I read from README, but if waiting for next input
Hi all,
-
$pid = open(README, "program arguments |") or die "Couldn't fork: $!\n";
while () {
# ...
}
close(README)
--
my problem is: I read from README, but if waiting for next input is
timeout, end reading. Is there any timer