[clug] running fortune from cron.
johnboy at the-riotact.com
Wed Sep 10 11:10:45 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
I'm almost certainly not doing this the most efficient way, but by way
of a learning exercise I've written a shell script (my first) to
generate fortunes, use enscript to convert them into postscript and then
using convert to turn them into png files, which in turn are displayed
by a "slideshow" screensaver.
The script runs fine when i execute it myself,
but when I put it in the crontab it can't find fortune.
(Debian woody machine)
the script is as follows:
fortune > /home/john/sceen.txt
enscript -B -f Times-Roman20 /home/john/sceen.txt -p sceen.ps
convert -negate /home/john/sceen.ps /home/john/sceen/sceen.png
The crontab is:
01 * * * * nohup /home/john/sceen.sh &
and the error messgae cron is mailling me looks like this:
/home/john/sceen.sh: fortune: command not found
Any help would be appreciated.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the linux