How to catch and handle errors in bash

Posted by xmodulo on Mar 30, 2021 12:16 AM EDT
Xmodulo; By Dan Nanni
Mail this story
Print this story

Writing a robust, bug-free bash script is always challenging even for a seasoned system administrator. While you cannot prevent all errors in your bash script, at least you should try to handle potential error conditions in a more predictable and controlled fashion. This tutorial introduces basic tips to catch and handle errors in bash.

Writing a robust, bug-free bash script is always challenging even for a seasoned system administrator. While you cannot prevent all errors in your bash script, at least you should try to handle potential error conditions in a more predictable and controlled fashion. This tutorial introduces basic tips to catch and handle errors in bash.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.