$bp_down = shell_exec ("cat /proc/net/dev | grep eth0 | cut -d\":\" -f 2 | awk '{ print $1 }'") ;
$bp_up = shell_exec ("cat /proc/net/dev | grep eth0 | cut -d\":\" -f 2 | awk '{ print $9 }'") ;
Ho usato questi vanno bene? Mi restituisce valori cosi:
1710161271 down & 3504192126 up
Mike