LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to handle errors/notifications on scripts? (https://www.linuxquestions.org/questions/programming-9/how-to-handle-errors-notifications-on-scripts-465388/)

richikiki 07-19-2006 12:01 AM

how to handle errors/notifications on scripts?
 
I'm wondering how to handle errors/notifications on scripts.

Currently, I'm working in the analysis of systems which interact together. Right now there is a mess because they neither log information nor parse the data before process. Moreover some scripts send email notification which is a headache because each script do so and it is almost impossible to change each script in order to snooze.

Code:

I'm thinking into create logs file telling about the process on the script and log the information on specific files like:
SCRIPTNAME_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND.log

Then use the another entity (program, software, script) to check the log files looking for any error.

Code:

Q1: Any one has a better idea approach to accomplish this task?.

Q2: Do you know a good log analyzer (program, software, script), which is possible to modify and customize to my needs.

Greetings.

Bruce Hill 07-19-2006 01:09 AM

Search this thread ...


All times are GMT -5. The time now is 07:45 AM.