Next: Fortune cookies, Up: Advanced usage [Contents][Index]
If file descriptor 3 is definied when ponysay
is executed, extra information
is printed to it. The printed information includes the name of the pony file, the name
of the balloon style file, and if definied in the pony file, file meta data and comment.
In most shells, a file descriptor 3 can defined using 3> FILE
, and linked to
stderr using 3>&2
. For example, you can print the information to ~/info
by running ponysay I\'m just the cutest pony! 3> ~/info
.
The message is not stored this way, for that you can use tee
. However, if you
use -q the quote file is printed to file descriptor 3.