8275 Views 3 Replies Latest reply: Oct 12, 2007 4:01 PM by Roger Smith3
killall will kill every instance of Terminal running on the machine, not just the one that this script is running in. You might want to try as a test script:
ps auxwwww | egrep $(echo $PPID)
which, hopefully will list the Terminal that the script is running in. Then you can use the PPID (Parent Process ID) as an argument to kill to kill only your instance of Terminal.