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

when you want the output of one process in your perl script run it with a pipe or backticks

like @lines = `ping -c 5 -s localhost 56 1`; #dont forget -c or on unix like systems you will be inside an infinite loop


HTH Ram

--
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