Timeout for user input

Timeout for user input

am 17.06.2011 15:39:13 von Parag Kalra

--00151747620017a0d004a5e88499
Content-Type: text/plain; charset=UTF-8

Hi,

I have a requirement where I want to wait for user to input the data.

However if user doesn't input the data within certain period of time then it
should timeout and move ahead.

TIA

~Parag

--00151747620017a0d004a5e88499--

Re: Timeout for user input

am 17.06.2011 15:47:39 von Brian Fraser

--bcaec55551a201f63104a5e8a130
Content-Type: text/plain; charset=UTF-8

On Fri, Jun 17, 2011 at 10:39 AM, Parag Kalra wrote:

> Hi,
>
> I have a requirement where I want to wait for user to input the data.
>
> However if user doesn't input the data within certain period of time then
> it
> should timeout and move ahead.
>
> TIA
>
> ~Parag
>

Cool.

Good luck with that.

Brian.

--bcaec55551a201f63104a5e8a130--

RE: Timeout for user input

am 17.06.2011 15:52:53 von Ken Slater

> -----Original Message-----
> From: Parag Kalra [mailto:paragkalra@gmail.com]
> Sent: Friday, June 17, 2011 9:39 AM
> To: Perl Beginners
> Subject: Timeout for user input
>
> Hi,
>
> I have a requirement where I want to wait for user to input the data.
>
> However if user doesn't input the data within certain period of time
> then it
> should timeout and move ahead.
>
> TIA
>
> ~Parag

Take a look at the IO::Select module (perldoc IO::Select).
HTH, Ken



--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Timeout for user input

am 17.06.2011 23:10:21 von derykus

On Jun 17, 6:39=A0am, paragka...@gmail.com (Parag Kalra) wrote:
> Hi,
>
> I have a requirement where I want to wait for user to input the data.
>
> However if user doesn't input the data within certain period of time then=
it
> should timeout and move ahead.

There's an example in the docs. See:

perldoc perlipc # look for keyword 'timeout'

--
Charles DeRykus


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/