Thanks for the info pludi. There was reference to CAT instead of cat and once it was changed the script worked.
Thanks <3
---------- Post updated at 05:03 AM ---------- Previous update was at 04:10 AM ----------
The next error I can't manage to fix (or google) is: stty: invalid argument `-oproc'
It's from the line: echo "$PROMPT\c"; stty -oproc; read ANS
I tried just removing the -oproc but I get: speed 38400 baud; line = 0;
being displayed.
I tried removing the stty part all together but it becomes a never ending loop (loop only ends when S or D is specified but without the stty S or D isn't accepted either despite the rest appearing right).
Here's the function for more info on the code:
pastebin - Stuff - post number 1892380