| 123456789101112131415 |
- #!/bin/bash
- PROCS="amplifierPower.pl audio.pl bias.pl color.pl comfort.pl debug.pl door.pl fan.pl garage.pl garage_leds.pl garage_shelf.pl leds.pl oil.pl overhead.pl projectorPower.pl rave.pl rifftrax.pl rope.pl frontApp shelf_high.pl stairs.pl announce.pl rumbleCtl.pl HDMIctrl.pl vr.pl"
- # Find the PID for each named process
- PIDS=""
- for i in $PROCS; do
- PID="`ps -A -o pid=,command= | grep -v grep | grep ${i} | awk '{print $1}'`"
- PIDS="${PIDS} ${PID}"
- done
- # Kill everything we found
- kill $PIDS
- # Always exit cleanly
- exit 0
|