Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to use timeout in perl

by blindluke (Hermit)
on Jan 08, 2015 at 13:35 UTC ( [id://1112642]=note: print w/replies, xml ) Need Help??


in reply to How to use timeout in perl

See this recent thread: Self terminating a script after a specified time for a problem similar to yours. Especially this reply containing useful notes about alarm.

Also, as in the thread above, I would suggest you to look at Time::Limit.

- Luke

Replies are listed 'Best First'.
Re^2: How to use timeout in perl
by vasuperl (Acolyte) on Jan 09, 2015 at 05:05 UTC

    I already tried that one. But Time::Limit (limit.pm) module is not present in our perl version. We should not use external modules. Is there any other way to use timeout or alarm to exit from the script. Any help can be appreciated.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1112642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found