example script to redirect output to Console
while true
do
echo "UDP Record Count"`wc -l /proc/net/udp` > /dev/ttyS0
cat /proc/net/udp > /dev/ttyS0
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" > /dev/ttyS0
sleep 30
done
1. "`" means "shift" of "~"
2. In Console, use "tty" to be informed of "/dev/ttyS0"
全站熱搜
留言列表