LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [TOTD] find error corresponding to number

[ILUG] [TOTD] find error corresponding to number

kevin lyda kevin+dated+1084213786.2725c6 at ie.suberic.net
Wed May 5 19:29:36 IST 2004


On Wed, May 05, 2004 at 05:34:05PM +0100, P at draigBrady.com wrote:
> Many times I've wasted a couple of minutes
> looking for the error corresponding to an
> errno returned from a program. So instead
> I spent 5 mins writing this shell script.
> 
> http://www.pixelbeat.org/scripts/strerror

shell.  feh.   :)

http://ie.suberic.net/~kevin/strerror.pl

> Example usage:
> 
> #show all errnos
> strerror

strerror.pl
 
> #find error 101
> strerror 101

strerror.pl 101
 
> #find all NET related errors
> strerror | grep NET

strerror.pl net

all in a 162 byte perl script with two ?: ops and a map call.

kevin, who wrote it by shaking his keys next to a modem...

-- 
kevin at ie.suberic.net  ~  "you're either with us or against us." --dubya
iraq: vietnam again?  ~  in that simplistic world-view progressives and
a new lbj selected -  ~  liberals are "us" while bush and bin laden are
"looney bush junior"  ~  "against us."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/ilug/attachments/20040505/0db56ddb/attachment.pgp


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell