Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 05-26-2004, 08:14 AM   #1
LQ Newbie
Registered: Apr 2003
Posts: 9

Rep: Reputation: 0
rx/tx values

hey all..

i'm trying to install rrdtool on my 5.2 freebsd box, everything has gone fine until the point now where i need to monitor the rx/tx values...

within a perl script i'm declaring a variable (my $in = `netstat -nbI ed0 | awk '/Link/ {print $7;}'`
returns data, but not just an integer alone.


netstat -nbI ed0|awk '/Link/ {print $7;}'

from a command prompt returns the correct RX Integer Value only. no more data.

what am i missing to get this command to return the correct value from within a perl script??

thanks in advanced
Old 05-26-2004, 02:06 PM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
Edit: Ooops, I misunderstood the question...

Well, what extra data is returned that you don't expect? Give an example of the value of $in that you believe is incorrect.

Last edited by chort; 05-26-2004 at 02:08 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing register values in C... Elric of Grans Programming 6 05-09-2005 12:30 AM
Sync Values waslit Linux - Software 0 06-05-2004 07:34 AM
lm-sensors unchanged values ndm Linux - Newbie 0 02-25-2004 05:21 AM
mmm... crazy values in C ssobeht Programming 6 12-12-2003 06:53 AM
Checking for repeat values techrolla Programming 4 12-09-2003 08:41 PM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration