Computing.Net > Forums > Unix > Time monitored Input prompts in script.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Time monitored Input prompts in script.

Reply to Message Icon

Name: abby
Date: July 16, 2002 at 17:08:31 Pacific
Comment:

Hi all,
I'm trying to write an interactive script wherein user has to input some paramaeters. I am using "read" for that. I was wondering if I can use time defined read which would let the script exit after 45 seconds of no user input !!
Any suggestions on how to accomplish this ?
Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: PaulS
Date: July 19, 2002 at 07:06:54 Pacific
Reply:

Why not just build a while loop and add sleep 15 in it, prompting the user for input every 15 seconds. If you get input, jump out of the loop and continue; if not just exit.


0
Reply to Message Icon

Related Posts

See More


FreeBSD & NT5 how to find in which shel...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Time monitored Input prompts in script.

need help in scripting ksh www.computing.net/answers/unix/need-help-in-scripting-ksh/7266.html

Logic in possible in Scripts www.computing.net/answers/unix/logic-in-possible-in-scripts/5591.html

difference in time www.computing.net/answers/unix/difference-in-time/6880.html