Error handling for Perl build scripts.

Posted on 2005-03-03
Medium Priority
Last Modified: 2010-03-05
We have many build scripts in Perl, for different products and platforms.
As a newbie, I found some errors are not handled and troubled us from time to time, such as network issues or some branched processes became idled.
I want to add the error handling codes but there are too many of the old Perl scripts.
What are the recommended ways if you are in my position? Write a wrapper to call those scripts and do error handling from there?
Any help will be appreciated.

Question by:MRKumo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 18

Assisted Solution

kandura earned 500 total points
ID: 13461952
depends on how these errors affect the scripts: do they die unexpectedly?
how would you want to handle the errors you mention? should the script fail with a warning? retry?

Author Comment

ID: 13494397
yap, they just died and hanged.
I'd like to know what cause the haning, if possible.
LVL 84

Accepted Solution

ozo earned 500 total points
ID: 13494478
Knowing the last thing they did before hanging may help you narrow down what operation is having difficulty.
Adding diagnostic prints or running it with -d may also help figureing out what it's doing.
Or maybe you just want to kill and restart a process when if it stops responding.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Six Sigma Control Plans

752 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