LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 02-20-2013, 08:31 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 96,926

Rep: Reputation: 102Reputation: 102
LXer: Detailed Error Handling In Bash


Published at LXer:

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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Bash error handling. Smart solution is needed. Michal Krzyz Linux - Newbie 17 12-16-2012 12:01 PM
try/except error handling in bash desromic Programming 4 06-30-2011 04:04 PM
[SOLVED] bash error handling m3phisto Linux - Newbie 4 04-26-2011 08:28 AM
LXer: Bash: Handling Command Not Found LXer Syndicated Linux News 1 04-24-2010 09:07 AM
Bash Script and Loop error handling Kedelfor Programming 5 05-22-2005 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration