<div class="gmail_quote"><br><div>Hi,</div><div>I have a script that dumb a image from kstars and then set it as a desktop background. I want to put it in crontab. Following is the script.</div><div>What I found was the script is executing. The image is getting created but it fails to set as desktop background ( the second line in the script)</div>


<div>somebody please help me</div><div><br></div><div><i><span style="font-style:normal">starwall file </span></i></div><div><div><span style="background-color:rgb(192, 192, 192)"><i>#!/bin/bash</i></span></div>
<div><span style="background-color:rgb(192, 192, 192)"><i><span style="font-style:normal">#starwall file </span></i></span></div><div><span style="background-color:rgb(192, 192, 192)"><i>kstars --dump -width 1280 --height 1024 --filename=&quot;/home/brijith/kstar.png&quot;</i></span></div>


<div><span style="background-color:rgb(192, 192, 192)"><i>/usr/bin/gconftool -t string -s &quot;/desktop/gnome/background/picture_filename&quot; &quot;/home/brijith/kstar.png&quot;</i></span></div>
<div><span style="background-color:rgb(192, 192, 192)"><i>echo &quot;Done&quot;</i></span></div></div><div><br></div><div>crontab entry </div><div><div><span style="background-color:rgb(192, 192, 192)"># m h  dom mon dow   command</span></div>


<div><span style="background-color:rgb(192, 192, 192)">*/1 * * * * env DISPLAY=:0.0 /usr/local/bin/starwall &gt;Desktop/error.txt</span></div><div><font color="#999999"><span style="background-color:rgb(192, 192, 192)"><br>


</span></font></div></div><div><br></div>
</div><br>