Yep -- this happens sometimes.
There seem to be a couple of different causes.
I've seen it in two different scenarios, and maybe other people can chip in with cases as well.
1 -- Some user process crashes and manages to detach itself from the keyboard, the tty device. It then loops like crazy looking for some input from somewhere, anywhere....
2 -- A user connected on a (noisy) dialup line loses his/her connection. The application, being reasonably well behaved, dies quietly. The shell script based menu doesn't notice that its tty device has gone away and loops looking for some input.....
Do either of these sound familiar to you?
If it's 1 -- there's not much you can do about that, apart from what you're doing now that is.
If it's 2 -- you can arrange it so that the shell script notices when a bad thing happens and exits nicely. Will show you how if you need it. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.