I have a program that runs scripts. If the user types "script
myScript.dat" the program will grab commands from the text file, verify
correctness, and begin executing the script UNTIL...
I need a way to stop the execution with user input. I was thinking
something like this:
while(user hasn't pressed 'any key'){
keepExecutingSc ript();
}
How can I do the "user hasn't pressed 'any key' " of this logic?
Running Linux Red Hat V3.
Thanks,
myScript.dat" the program will grab commands from the text file, verify
correctness, and begin executing the script UNTIL...
I need a way to stop the execution with user input. I was thinking
something like this:
while(user hasn't pressed 'any key'){
keepExecutingSc ript();
}
How can I do the "user hasn't pressed 'any key' " of this logic?
Running Linux Red Hat V3.
Thanks,
Comment