Error code: Difference between revisions

Content deleted Content added
Ceros (talk | contribs)
Add section for listing error codes
Line 41:
The following shell commands can be used to determine error codes and messages on a particular system.
 
<source lang="bash">
# Win32:
perl -MErrno -e "my %e= map { Errno->$_()=>$_ } keys(%!); print grep !
+/unknown error/i, map sprintf('%4d %-12s %s'.$/,$_,$e{$_},$!=$_), 0..
+127"
 
# Other:
perl -MErrno -e 'my %e= map { Errno->$_()=>$_ } keys(%!); print grep !
+/unknown error/i, map sprintf("%4d %-12s %s".$/,$_,$e{$_},$!=$_), 0..
+127'
</source>