For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2006 > Re: Error output from a fork









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Error output from a fork
Ken Foskey

2006-12-20, 9:58 pm

On Mon, 2006-12-18 at 12:15 -0600, Dukelow, Don wrote:
> I'm making two executable file that is just one lines of ping commands
> like.
>
> remsh <system name> ping -I <port IP> <router IP>
>
> This file could have a couple hundred line it like this.
> Each of the two files will be put off in different forks at the same time.
> For trouble shooting purposes I would like to see the out put of the two
> forked ping files to the screen. The perl line I'm using to execute these
> files is qx/$OUT_FILE1/; and qx/$OUT_FILE2/;. everything is happened in
> back ground so I don't see any of the system is alive output.


I don't quite understand what you want.

>From the subject line I read system2 might be what you need, grabs

stdout and stderr separately into a variable.

>From you description you want a two part screen and there is a curses

modules that does that for you.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com