On Tue, Jan 23, 2001 at 02:10:15PM -0800, Don Pierce wrote:
> I am attempting to add a Comment to my memory graph
> but am having problem with the display.
>
> The following code:
> my $LAT=`$HEAD -1 /usr/local/bbvar/logs/$host.cpu | $AWK -F'm:' '{print $2}'
> | $AWK -F'MB' '{print $1}'`;
> qq(COMMENT:Physical Memory = $LAT MegaBytes\1),
...
> What is wrong with my syntax in the first example.
> I know the $HEAD .... code works as I tried on the command line
> and it returns a number between 128 and 1024.
You can't just execute shell code from Perl by putting it in
backquotes. You need to use the system command, or do the equivalent
functions within Perl.
-- Clifton
--
Clifton Royston -- LavaNet Systems Architect -- [EMAIL PROTECTED]
The named which can be named is not the Eternal named.
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi