Hello All,
I have written a C++ program that goes to a website (Astronomy Picture of the Day) and downloads an image then sets it as my background using the fbsetbg -f (filename) command on a daily basis. The program is basically a bunch of system commands and it works perfectly if run manually. When cron runs it i get an e-mail with the following contents..
From
brandon@localhost.localdomain Wed Aug 02 05:00:02 2006
Envelope-to:
brandon@localhost.localdomain
Delivery-date: Wed, 02 Aug 2006 05:00:02 -0400
From:
root@localhost.localdomain (Cron Daemon)
To:
brandon@localhost.localdomain
Subject: Cron <brandon@wembley> $HOME/code/astro
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/brandon>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=brandon>
Date: Wed, 02 Aug 2006 05:00:02 -0400
/usr/bin/fbsetbg: line 169: xmessage: command not found
now the SHELL i use is actually /bin/bash but im not sure if that matters for this. the fbsetbg command IS in my path so im not sure where this command not found message is coming from. furthermore, when i check to see if the image has been downloaded into the designated folder it is there.
also, my crontab -l looks like this..
00 5 * * * $HOME/code/astro
does anyone have a clue as to what im doing or not doing correctly??