s. Another problem solved!!!
Till next time!
--- On Wed, 5/27/09, Chas. Owens wrote:
> From: Chas. Owens
> Subject: Re: variables gets shared to child but resets back after exiting fork
> To: "Michael Alipio"
> Cc: "begginers perl.org"
> Date: Wedn
On Wed, May 27, 2009 at 07:24, Michael Alipio wrote:
>
> Sorry about the indention... must be the mail client i'm using.
> I need to fork because the external program I want to run inside the child
> runs infinitely. I want to have a timer running in the parent and after that,
> kill the child.
;m reading the perlipc now.. nothing so far..
--- On Wed, 5/27/09, Chas. Owens wrote:
> From: Chas. Owens
> Subject: Re: variables gets shared to child but resets back after exiting fork
> To: "Michael Alipio"
> Cc: "begginers perl.org"
> Date: Wednesday, May 2
On Wed, May 27, 2009 at 05:42, Michael Alipio wrote:
>
> Hi,
>
> I have to run an external program but the program does not termination on
> some conditions, e.g, ping, will not exit unless you specify -c or some other
> circumstances.
>
>
> Now I what I want to do is:
>
> my @array;
> die "Cann
Hi,
I have to run an external program but the program does not termination on some
conditions, e.g, ping, will not exit unless you specify -c or some other
circumstances.
Now I what I want to do is:
my @array;
die "Cannot fork myprog" unless (defined my $pid = fork)
if ($pid==0){
open MYPROG