Portál AbcLinuxu, 23. listopadu 2026 18:00
man pppd:
For the ip-down and auth-down scripts, pppd also sets the
following variables giving statistics for the connection:
CONNECT_TIME
The number of seconds from when the PPP
negotiation started until the connection was terminated.
BYTES_SENT
The number of bytes sent (at the level of the
serial port) during the connection.
BYTES_RCVD
The number of bytes received (at the level of
the serial port) during the connection.
takze by malo stacit urobit skript /etc/ppp/ip-up ktory urobi: echo "cas: $CONNECT_TIME prenesenych bytov: $BYTES_SENT + $BYTES_RCVD"
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.