Quote:
Originally Posted by priyadarshan
Is the file operation by writing the output of above command is only option to access byte numbers?
|
Haven't see anything related in /proc/net or /proc/sys/net...
Quote:
Originally Posted by priyadarshan
Can I use shell script?
|
Sure.
Quote:
Originally Posted by priyadarshan
Can I get the variable in which the data about byte count is stored?
|
Use an array to hold values: 'COUNTERS=($(iptables -nvxL 2>&1|awk '/\// {print $2}'))'?