On Mon, 7 Feb 2000, dave wrote:

> I thought I had this licked last night, but I guess I didn't.
> It seems that using crontab I can do neat console things like wget an
> image from a web site, but I can't seem to make anything happen in X. 
> Can anyone tell me why this crontab wgets the file on schedule but
> doesn't display it?
> 
> 25 * * * * /usr/bin/wget -O /root/rad_at.gif
> http://weather.unisys.com/radar/rad_at.gif
> 26 * * * * /usr/X11R6/bin/xloadimage -onroot -fullscreen
> /root/rad_at.gif
Try putting /usr/X11R6/bin/xloadimage -onroot -fullscreen /root/rad_at.gif
into a script IE:
vi rad.sh
#!/bin/ssh
/usr/X11R6/bin/xloadimage -onroot -fullscreen /root/rad_at.gif

then make your crontab like this:
26 * * * * /root/rad.sh

what I think is happening is that cron is executing the
/usr/X11R6/bin/xloadimage but is not passing the associated args.
you could also try quoteing the command IE:
26 * * * * "/usr/X11R6/bin/xloadimage -onroot -fullscreen/root/rad_at.gif"

Regards,
Ron
> 
> The xloadimage line works great from the command line, just as it is
> above.  I tried
> 26 * * * * ee /pics/somepic.jpg  and that didn't do anything either.  I
> hear the drive thrash briefly at the appointed time, but I see no
> output, and receive no mail with errors.
> 
> Is it an X thing?  
> 
> Arggh!  :)
> 
> dave w
> 

Reply via email to