Solved

Catch Error Fall Under Sleep

Posted on 2006-12-01
5
161 Views
Last Modified: 2010-03-05
Hi,

I am doing data transfer for 10 mts .

After I start the Data Transfer I put the sleep 10 mts .

1) If Data Transfer stop after 5 mts(due to some reason) so their is way in a Perl to Under this error.

2) Script will show the error  after the 5 mts.

Question : How to Handle Error while we invoke Sleep ?










0
Comment
Question by:gauravflame
  • 2
  • 2
5 Comments
 

Author Comment

by:gauravflame
ID: 18052055
rehrase

1) ...their is a way in Perl to catch this error.

0
 
LVL 84

Expert Comment

by:ozo
ID: 18052103
alarm
0
 

Author Comment

by:gauravflame
ID: 18056843
How I can use this alarm with

sleep 600;


Thanks
0
 
LVL 9

Accepted Solution

by:
Suhas . earned 100 total points
ID: 18059850
Hi gauravflame,
you can use the benchmark for the total time taken for copying the script,
if its less than 600sec then send a mail with proper error message to concern person.

for more reference go through the module
http://search.cpan.org/dist/perl/lib/Benchmark.pm

Cheers!
Suhas
0
 
LVL 9

Expert Comment

by:Suhas .
ID: 18059852
for sending the mail you can use MIME::Lite module
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question