dominic7 has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl script that I want to launch at the boot up of my system. I need the script to wait for a timed duration waiting for input, and if no input is received, then it will just exit. Basically "Press any key in the next 10 seconds to invoke script"
I know how to grab user input from the command line, I just havn't figured out how to make it wait for only a limited duration.
Thank in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Timed wait for input
by BrowserUk (Patriarch) on Oct 22, 2005 at 19:47 UTC | |
by dominic7 (Novice) on Oct 22, 2005 at 21:00 UTC | |
|
Re: Timed wait for input
by GrandFather (Saint) on Oct 22, 2005 at 21:02 UTC | |
|
Re: Timed wait for input
by Joost (Canon) on Oct 23, 2005 at 01:02 UTC | |
by saskaqueer (Friar) on Oct 23, 2005 at 19:25 UTC |