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.
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.
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.
Summary: Create two process, one will sleep for 60 seconds, then will kill the other process if it exists and join the files and then exit. The other one will continue to monitor the directory in 2 sec gap, i...
Summary: Hi, I have a major doubt in scripts i.i if [ $MEET = '0' ] then echo " SENT " else if [ $MEET = '8' ] then echo "NOTSENT" fi fi This gave me a output but still i have doubt like EX: If i have four SE...
Summary: Hi Guru's, Need you help write a script to findout the difference between two given time values input ex: 155834 (hr,min,sec) should be able to know that difference between 155834 and 181210 is > 2hrs...