Set time period for a statement to execute

2007-06-20 Thread anand kumar
Please guide me with some code or documentation for the following problem :- I need to set some specific time for a command to execute. For example, If I am opening a very large file and it takes me more than 3 to 4 seconds then my code should be able to quit the program or kill the

Re: Set time period for a statement to execute

2007-06-20 Thread Mumia W.
On 06/20/2007 02:07 AM, anand kumar wrote: Please guide me with some code or documentation for the following problem :- I need to set some specific time for a command to execute. [...] The alarm function might help you: At a command prompt, type perldoc -f alarm -- To

Re: Set time period for a statement to execute

2007-06-20 Thread anand kumar
Thank You It worked fine -Anand Mumia W. [EMAIL PROTECTED] wrote: On 06/20/2007 02:07 AM, anand kumar wrote: Please guide me with some code or documentation for the following problem :- I need to set some specific time for a command to execute. [...] The alarm function might help