Thanks to everyone who gave input, especially Ethan. This is the latest version and seems to work well -
--------------------------------------------------- #!/bin/sh # mynet # used to remove netscape's lockfile and kill it's pid after a #freeze. lock_file=~/.netscape/lock net_pid=$(ps x|grep netscape|grep -v grep|awk '{print $1}') if [ -n "$net_pid" ] then kill -9 "$net_pid" echo -e "\nKilled pid #$net_pid." fi if [ -L "$lock_file" ] then rm "$lock_file" echo -e "\nLockfile was removed.\n" fi netscape -no-about-splash & ----------------------------------------------------- kent -- "In order to make an apple pie from scratch, you must first create the universe." - Carl Sagan