[H-GEN] Perl question

Gary Price (ICT) garybprice at bigpond.com
Fri Jul 12 03:17:07 EDT 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

MRTG is pretty good.
----- Original Message -----
From: "Scott Pullen" <spullen at optusnet.com.au>
To: "general @ lists . humbug . org . au" <general at lists.humbug.org.au>
Sent: Friday, July 12, 2002 4:22 PM
Subject: [H-GEN] Perl question


> [ Humbug *General* list - semi-serious discussions about Humbug and     ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
>
> I want to extract some information about a server, store the info for
historical
> reports.  I want to be able to display it graphically in real time or as a
report
> between two periods.
>
> I am stuck at the moment on something that is trivial but I can't seem to
find an
> answer in any of the references we have on hand.
>
> I have a small script that runs iostat and extracts the bits of data that
I want.  It
> prints the values out as a comma seperated list.  If I run the script in
backticks
> within the Perl code and try and assign it as follows:
>
> ($ret_val1, $ret_val2) = ( `small_shell_script`);
>
> The first value gets the entire printed value and the second remains un-
> initialised.  I can't qw() the shell script because that of course quotes
it and
> doesn't run the script.
>
> Does anyone know how to get around this problem.  Failing that has anyone
got
> a perl iostat script   :~)3
>
> Cheers,
>
> Scott.
>
> --
> * This is list (humbug) general handled by majordomo at lists.humbug.org.au .
> * Postings to this list are only accepted from subscribed addresses of
> * lists 'general' or 'general-post'.  See http://www.humbug.org.au/
>


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list