Timeout for user input

--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--
Parag Kalra [ Fr, 17 Juni 2011 15:39 ] [ ID #2061232 ]

Re: Timeout for user input

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

On Fri, Jun 17, 2011 at 10:39 AM, Parag Kalra <paragkalra [at] gmail.com> 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--
Brian Fraser [ Fr, 17 Juni 2011 15:47 ] [ ID #2061233 ]

RE: Timeout for user input

> -----Original Message-----
> From: Parag Kalra [mailto:paragkalra [at] 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 [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Ken Slater [ Fr, 17 Juni 2011 15:52 ] [ ID #2061234 ]

Re: Timeout for user input

On Jun 17, 6:39=A0am, paragka... [at] 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 [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
derykus [ Fr, 17 Juni 2011 23:10 ] [ ID #2061239 ]
Perl » gmane.comp.lang.perl.beginners » Timeout for user input

Vorheriges Thema: Remote User Enviorment
Nächstes Thema: trying to match non ascii chars