Solved

Catch Error Fall Under Sleep

Posted on 2006-12-01
5
158 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTTP Error 502.2 - Bad Gateway 3 205
work on ods spreadsheet with perl in ubuntu 4 75
Rename file based on contents in the file? 3 80
create a gui in perl 3 72
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now