Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Detailed Error Handling In Bash

Up
vote
Down

Shell scripts are often running as background processes, doing useful things without running in a visible shell. To write such scripts can be quite painful, as all errors occur out of sight as well. While log files can hold a lot of information, finding the relevant information is a bit trickier. My solution is to log only the errors with all the details to a small database. This database contains tables for the message, the corresponding stack trace and the important environment variables. I have chosen for an SQLite database in this howto, but the same principle works with other databases as well.
 read more | mail this link | score:9645 | -falko, February 21, 2013
More Programming articles...

Buy Art Online with a Free Return Policy

Selected articles

Testing the Digital Ocean $5 Cloud Servers with an MMORPG

Microsoft to push unlicensed users to Linux

Missing the point of the Mac Mini

Tutorial: Introduction to Linux files

Mono-culture and the .NETwork effect

Shadow.sh: A simple directory shadowing script for Linux

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin