[rrd-users] Re: Format problem

Clifton Royston cliftonr at lava.net
Tue Jan 23 23:24:15 MET 2001

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 --  cliftonr at lava.net
      The named which can be named is not the Eternal named.

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list