/usr/games/xcowfortune is in xcowsay 1.4-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh
#
# Display the output of fortune via xcowsay
#
# I run this via a cron job where DISPLAY isn't set
if [ "$DISPLAY" = "" ]; then
DISPLAY=:0.0
fi
# xcowsay may not be on the PATH...
# ...but it should be in the same directory as xcowfortune
PATH=$PATH:`dirname $0`
# fortune is often in /usr/games which may not be on the PATH
PATH=$PATH:/usr/games
exec env PATH=$PATH fortune | env PATH=$PATH DISPLAY=$DISPLAY xcowsay $@
|