#!/bin/sh ( echo echo PPP is up, interface $1, tty $2, speed $3 echo ' local' $4 echo remote $5 echo ps -Af | awk 'NR == 1 || $NF == "pppd"' #two different ways to see all the network interfaces echo /sbin/ifconfig -a echo netstat -ia #two different ways to see the routing table echo netstat -r #show the hostnames echo netstat -nr #show the IP addresses ) > /dev/ttyp0 exit 0