in reply to reading output from another script
open my $pipe => "tail -f /syslog.log" or die "Fork failed: $!"; while (<$pipe>) { ... whatever ... }
But beaware of pipe buffers.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: reading output from another script
by zby (Vicar) on Jul 23, 2003 at 14:40 UTC | |
by Abigail-II (Bishop) on Jul 23, 2003 at 14:53 UTC |
In Section
Seekers of Perl Wisdom