I have a huge "select do case" statement. and each time after chossing one of the options, I want to clear the screen and automatically hit <enter> again to show the select options.
kinda lame, and not exactly required, but I am sure the end user will be much happier with it.
so I am trying to put this at the end of each case choice.
that robotic arm would be cool too, but I don't have a spare lying around
because in a select command it just sits and wait for you to choose, so i want it to automatically hit <enter> right when it gets back to the PS3 prompt after completeing the previous selection. This way it displays the full list of choices again.
Have another flag, instead of "while true" have "while test "$RUNNING" = "1"" or similar.... set the flag beforehand, and set it to zero when you want to exit.
Or, depending on your script, you could really call exit, and if you had cleaning up to do, put it in a trap 0 function.