[clug] running fortune from cron.
johnboy at the-riotact.com
Wed Sep 10 11:23:33 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Thanks all for your help.
Mark Harrison wrote:
> The environment might not be the same inside cron? Maybe try absolute
> paths like '/usr/games/fortune'
> On Wed, 2003-09-10 at 11:10, John Griffiths wrote:
>>-----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-----
Not yet is the spirit of that pristine valour
extinct in you, when girt with steel and lofty flames
once we fought against the empire of heaven.
We were -- that I will not deny -- vanquished in that conflict:
yet the great intention was not lacking in nobility.
Something or other gave Him victory: to us remained
the glory of a dauntless daring.
And even if my troop fell thence vanquished,
yet to have attempted a lofty enterprise is still a trophy.
--From La Strage degli Innocenti (The Slaughter of the
Innocents) by Giambattista Marino (1569-1625)
-----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