RE: how to assign an external command aoutput to an array

2004-10-16 Thread Tim Johnson
TECTED] Sent: Friday, October 15, 2004 1:17 AM To: [EMAIL PROTECTED] Subject: Re: how to assign an external command aoutput to an array Ok Ok i found solution: my $got_value=qx'.'; my @values=split / /,$got_value: Thank You -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: how to assign an external command aoutput to an array

2004-10-15 Thread John W. Krahn
Mauro wrote: I have to assign output of ssh [EMAIL PROTECTED] sar -u 1 1|awk '/%usr%sys%wio %idle/ { getline ; printf "%i %i %i %i", $2, $3, $4, $5 }' to an array. The output looks like: 0 0 0 100 if I did: my @pippo=qx'ssh [EMAIL PROTECTED] sar -u 1 1|awk \'/%usr%sys%wio %idle/ {

Re: how to assign an external command aoutput to an array

2004-10-15 Thread Mauro
Ok Ok i found solution: my $got_value=qx'.'; my @values=split / /,$got_value: Thank You - Original Message - From: "Mauro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 15, 2004 9:23 AM Subject: how to assign an external c

how to assign an external command aoutput to an array

2004-10-15 Thread Mauro
I have to assign output of ssh [EMAIL PROTECTED] sar -u 1 1|awk '/%usr%sys%wio %idle/ { getline ; printf "%i %i %i %i", $2, $3, $4, $5 }' to an array. The output looks like: 0 0 0 100 if I did: my @pippo=qx'ssh [EMAIL PROTECTED] sar -u 1 1|awk \'/%usr%sys%wio %idle/ { getline ; pr