Hi Otto.

Sounds like you are rolling your own monitor applicaiton?

Without having tested this, I'd say:

        my $result = system("ping -s localhost 56 1");

Or, do you wish to receive multiple results for that one command?

I'm wondering, is this really the optimail solution to your problem.
What is the end product you are writing? May well be that there is
somehting there already.

If it is a monitoring application, I'd highly recommend
http://www.nagios.org/

Then you don't have to roll your own.. ;)

Enjoy!

//Anders//

On Mon, 2004-05-24 at 11:58, Werner Otto wrote:
> Hi There,
> 
> I am having trouble with string creation.
> 
> I need to do something like:
> 
>       system("ping -s localhost 56 1");
> 
> This will echo:
> 
>       64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms
> 
> How do I get this echo'd value as a string value? I will be splitting this 
> string up into segments to fill my fields in my database table.
> 
> Regards
> Otto


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to