4 # Display the output of fortune via xcowsay
7 # I run this via a cron job where DISPLAY isn't set
8 if [ "$DISPLAY" = "" ]; then
12 # xcowsay may not be on the PATH...
13 # ...but it should be in the same directory as xcowfortune
14 PATH=$PATH:`dirname $0`
16 # fortune is often in /usr/games which may not be on the PATH
19 exec env PATH=$PATH fortune | env PATH=$PATH DISPLAY=$DISPLAY xcowsay $@