The 'x25stat' program I use produces an output similar to below.
$ x25stat
GLOBAL STATISTICS FOR X25
-------------------------------------
Packet type TX RX
-------------------------------------
Packets(total) 2314667 2450836
Bytes(total) 31835647 36789526
$
From the cron I want to call a script that runs 'x25stat' and outputs Packets TX, Packets Rx, Bytes TX and Bytes RX into a single pipe delimited line. Something like:
2314667 | 2450836 | 31835647 | 36789526
Can use sh or ksh. TIA
$ x25stat
GLOBAL STATISTICS FOR X25
-------------------------------------
Packet type TX RX
-------------------------------------
Packets(total) 2314667 2450836
Bytes(total) 31835647 36789526
$
From the cron I want to call a script that runs 'x25stat' and outputs Packets TX, Packets Rx, Bytes TX and Bytes RX into a single pipe delimited line. Something like:
2314667 | 2450836 | 31835647 | 36789526
Can use sh or ksh. TIA