I have a lazy man's timer, works fine but I need to restart it.
I've done extensive programming on other UNIX/LINUX OS's
but hardly any on Mac even though I've been using Macs for years.
Normally I wouldn't mind doing extensive research and teaching
myself but I don't have time, working on something else that's
crucial, just need to get this thing running on my Mac as a side.
If I have a timer loop and I want it to run the loop, calling
the trigger event when the timer's done, and run the trigger
event until any key is pressed, then break back to to the main script,
how can I tell it until read any key in the mac CLI?
Example:
Main program running.
timer ends. calls secondary
secondary runs until any key is pressed.
back to main.
I'd post the script but it's on a standalone and I'm too lazy to retype.
I just need to tell it to read any key. Normally I'd set a null variable,
if any input from /dev/tty, go back, then reset the null, but again I
haven't done much on Macs.
Thanks in advance.
I've done extensive programming on other UNIX/LINUX OS's
but hardly any on Mac even though I've been using Macs for years.
Normally I wouldn't mind doing extensive research and teaching
myself but I don't have time, working on something else that's
crucial, just need to get this thing running on my Mac as a side.
If I have a timer loop and I want it to run the loop, calling
the trigger event when the timer's done, and run the trigger
event until any key is pressed, then break back to to the main script,
how can I tell it until read any key in the mac CLI?
Example:
Main program running.
timer ends. calls secondary
secondary runs until any key is pressed.
back to main.
I'd post the script but it's on a standalone and I'm too lazy to retype.
I just need to tell it to read any key. Normally I'd set a null variable,
if any input from /dev/tty, go back, then reset the null, but again I
haven't done much on Macs.
Thanks in advance.