one way to do this is to cat the output of ping to a file..or simply.. @u_there=`ping -s localhost 56 1`; # watch the quotes
Mandar ---- Original message ---- >Date: Mon, 24 May 2004 11:58:18 +0100 >From: Werner Otto <[EMAIL PROTECTED]> >Subject: String issue? >To: [EMAIL PROTECTED] > >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> > > ------------------- Mandar Rahurkar ECE, UIUC ------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>