[ubuntu-in] probelm with crontab

Mehul Ved mehul.n.ved at gmail.com
Sun Jun 27 07:52:43 BST 2010


On Fri, Jun 25, 2010 at 5:24 PM, BR!j!TH <brijithp at gmail.com> wrote:
> Hi,
> 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.
> 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)
> somebody please help me
> starwall file
> #!/bin/bash
> #starwall file
> kstars --dump -width 1280 --height 1024 --filename="/home/brijith/kstar.png"

Try giving the full path to kstars.
If you don't know the path, you can find it using the command
which kstars
> /usr/bin/gconftool -t string -s "/desktop/gnome/background/picture_filename"
> "/home/brijith/kstar.png"
> echo "Done"
> crontab entry
> # m h  dom mon dow   command
> */1 * * * * env DISPLAY=:0.0 /usr/local/bin/starwall >Desktop/error.txt
>
>
> --
> ubuntu-in mailing list
> ubuntu-in at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
>
>



More information about the ubuntu-in mailing list