Work the Shell - Handling Errors and Making Scripts Bulletproof

May 1st, 2008 by Dave Taylor in

Shell scripts may be quick, easy and lightweight, but proper scripting includes the ability to anticipate and respond to error situations gracefully and without anything breaking. Dave explores some of the basic shell script error-handling options.

The article you are trying to access requires you to be a registered Linux Journal print or digital subscriber. Click HERE to login or SUBSCRIBE NOW for instant access.

If you are subscriber and have not yet created a LinuxJournal.com account, register HERE.

If you have already created a LinuxJournal.com account, but have not linked your subscriber information, click HERE for instructions.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions. We hope you prefer the math question to the scrambled letters.
3 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.