From root Wed Dec 15 18:21:50 1999 #!/bin/sh # basescript for remote control of engineering workstations of the HP type # john 99dec15 # note: hostseng contains a list of hostnames # # main command in this example is w, used to determine uptime, load and users # echo " =================================================================" echo " executing script to update / status engineering workstations " echo " =================================================================" for x in `cat /raid/02d/sa/hostseng` do echo " ------------------------------ " echo $x >> /raid/02d/sa/log.`/usr/bin/date +%y%b%d`.status # display hostname on crt echo $x remsh $x w >> /raid/02d/sa/log.`/usr/bin/date +%y%b%d`.status echo " next " echo " ------------------------------ " echo "-----------------" >> /raid/02d/sa/log.`/usr/bin/date +%y%b%d`.status done echo " =================================================================" echo " completed list, results found in /raid/02d/sa/log.-date-.status " echo " ================================================================="