Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl timeout

Status
Not open for further replies.

przytulaguy

Technical User
Joined
Jul 24, 2006
Messages
8
Location
BE
We are starting some perl jobs in windows.
the last step is to ship a mail with the job/status-result
when the smtp server is down (?) the perl job gets in a hang condiition because of waiting on the ship mail
Is there any possibility in perl or other to avoid this hang and to specifiy that if a jobs runs longer than 5minutes, we cancel/abort
We are check nbr of concurrent running perl jobs and reach a limit and do not start any new jobs anymore
Thanks fo all information/help
Best Regards, Guy Przytula
 
How are you sending mails, you could use any SMTP server that's visible to you, ie your ISP.

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
we ship mail with builtin function of perl. there is a library that can be included that gives these options.
we use the smtp server on our network, also used for external mail deliveries.
There is no timeout option on this
Best Regards, Guy Przytula
 
Can we see the code? Net::SMTP on is a useful utility, or you could just use sendmail.

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top