you can use
$outstring=`ping -a $hostname | cut -c20-30`;
- Original Message - From: "Wiggins d Anconia"
<[EMAIL PROTECTED]>
To: "Werner Otto" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 20, 2004 7:46 PM
Subject: Re: String Variabl
> hi there,
>
> I've got the following example:
>
> system ("ping -a $hostname | cut -c20-30");
>
> how do I get the following result which is (is alive) into a string
> variable as I keep on getting 0
>
> Please help.
>
Seems like you might want to post these types of things to
[EMAIL PROTE