Error Library

Hi,

I'm in the process of writing an error trapping script, that basically greps a log file with a file that contains error messages, however, I don't actually know where unix stores these error messages (not to mention db errors, for sybase found out about master..sysmessages though).

I found a few links with the usual errors, but doesn't seem to be complete.

Any help or references will be very much appreciated.

Thanks

What exactly do you mean? The files where errors are stored, or a list of possible error messages?

Yes, for example:

ls asdfasdf
asdfasdf not found

where would be '<file name> not found' located or stored.

---------- Post updated at 04:23 PM ---------- Previous update was at 04:15 PM ----------

PS. my brains is about to explode. ~x(

Those messages are usually somewhere in the code.

Most (OSS) programs use the gettext library in order to provide translations. The library uses .mo files which contain an ID for a message and the appropriate translation for the current locale, but all in a binary format. The .mo files are "compiled" from .po files in the source distribution at build time, and usually reside (on a Linux system) in /usr/share/locale/<lang code>/LC_MESSAGES/

hi pludi, thanks for the info. not sure if i understand them completely, guess i need to read up some more on that. :smiley:

thanks again for the help!

"Light...? I can see the Light!" -- hehehe