Mauro wrote:
I want to assign to an array the output of operating system
command: /usr/bin/ssh [EMAIL PROTECTED] sar -u 1 1|awk '/%usr
%sys %wio %idle/ { getline ; printf "%s %s %s %s\n", $2, $3,
$4, $5 }'
How can I do it?
Use backticks (or the qx// operator) to capture output in Perl from a
system command.
my @array = qx($command);
I have some problem because there are a lot of special character...
Don't understand.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>