1 2 3 4 5 6 7
#!/bin/sh if [ -s /var/log/ppp.log ]; then exec tail "$@" /var/log/ppp.log else exec grep ' \(pppd\|chat\)\[' /var/log/syslog | tail "$@" fi