Re: gconftool-2

2009-03-28 Thread Amit Uttamchandani
On Wed, 4 Mar 2009 22:32:09 -0500
Rick Pasotto r...@niof.net wrote:

 I keep my system updated daily to testing and that may be the problem
 but still there's something I don't understand.
 
 I have a script that is run by cron every 15 minutes to change the
 background on my screen. Recently the script stopped working. The
 strange thing is that if I run the script from the command line it works
 as it always has. Actually, the script runs and does everything *except*
 change the background. The line to do this is:
 
 gconftool-2 -t str --set /desktop/gnome/background/picture_filename $FileName
 
 Why would that line not work when executed in a script run by cron even
 though it does work when the script is executed from the command line?

A couple of things you could check...

 1. Cron logs. If there is an error, it would say it there.

 2. Like the other reply said maybe it has something to do with the
environment variables. Try using the full path of the binary as well as
the picture file name.

Good luck.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: gconftool-2

2009-03-04 Thread Boyd Stephen Smith Jr.
On Wednesday 04 March 2009 21:32:09 Rick Pasotto wrote:
 gconftool-2 -t str --set /desktop/gnome/background/picture_filename
 $FileName

 Why would that line not work when executed in a script run by cron even
 though it does work when the script is executed from the command line?

Environment variables.  Although, I'm really not sure what environment 
variables would affect the behavior of gconftool-2.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/



signature.asc
Description: This is a digitally signed message part.