Question: I keep getting this cannot initialize target error in the simulator. What's wrong?

Answer: Below is the QK script (actually you can call it whatever you like) which is designed to kill all semaphores associated with the simulator. This will help you recover after you hang the simulator, or the OS decides you have too many semaphores allocated. To run this, have your system administrator install this in /usr/local/bin or /usr/contrib/bin and then type 'rehash' from the command line. Then type 'qk' (or whatever you sys admin called it when he installed it) and it should take care of any semaphores that the debuggers have left around.

#!/bin/csh
#-----------------------------------------------------------
# Shell script to remove shared resources #-----------------------------------------------------------
set yuser = `whoami`
set numb = ( ` ipcs | fgrep $yuser | cut -c1-20 |
egrep '(edd|54[01])' | cut -c1-9 | sed -e 's/^/-/' ` )
ipcrm $numb