Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: bsetbg and cron< Next Oldest | Next Newest >
xenocyber Offline





Group: Members
Posts: 5
Joined: June 2005
Posted: June 08 2005,19:53 QUOTE

I installed DSL to the HardDrive, enabled Apt-Get and installed Cron (Vixie_corn).

I want to make my backround change every 5 min. I wrote a script and ran it. All good

I added to the dsl user's crontab the script and nothing happens.
So I started  debuging and I have confirmed that the script is running but that the command
Code Sample
bsetbg -f ~/1.jpg
is not working when cron executes it.

I have also tried putting the full path /usr/bin/bsetbg ... w/o any luck

Any help would be appreciated.

XenoCyber
Back to top
Profile PM 
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: June 08 2005,23:25 QUOTE

Have you tried putting the full path to your home directory? i.e. not ~/1.jpg but /home/dsl/1.jpg
Back to top
Profile PM 
xenocyber Offline





Group: Members
Posts: 5
Joined: June 2005
Posted: June 09 2005,02:10 QUOTE

I have the following Cron tab file for dsl user
Code Sample

* * * * * /usr/bin/bsetbg -f "/home/dsl/1.jpg"
* * * * * /home/dsl/change > /home/dsl/1.txt


The fisrt line is debug and shaows that bsetbg dosent work
the second line actually is a script I wrote That also has some simple commands like "ls" and "pwd"  that show up in the out put file confirming that the cron job is running every min

XenoCyber
Back to top
Profile PM 
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: June 09 2005,13:49 QUOTE

Weird. I assume you've verified that /usr/bin/bsetbg -f "/home/dsl/1.jpg" works when not called from cron? Try redirecting the output of the bsetbg command so you can see the error that is generated.

Code Sample
/usr/bin/bsetbg -f "/home/dsl/1.jpg">/home/dsl/error.txt 2>&1
Back to top
Profile PM 
skaos
Unregistered






Posted: June 09 2005,14:40 QUOTE

Could it be that the DISPLAY variable isn't set?
Back to top
7 replies since June 08 2005,19:53 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: bsetbg and cron

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code