in reply to help with time limit script

Do you mean the user inputs the value, then the script exits after a time limit? Or the user has to enter input within a certain time limit, or the script ends?

If it's the first one, look into the sleep function. (sleep n - sleep for n seconds)

-Bryan