14.19.6 Operating System Error Codes

To print the error message for an operating system error number, you can use one of the following options. The perror program is provided with the MySQL distribution.

$ perror 123
$ perl -MPOSIX -le 'print strerror 123'
$ python -c 'import os; print os.strerror(123)'