Excellent! Glad it's working now!
Kind regards,
Adrian W.
27 Jun 2022 22:36:00 Tim :
> Adrian, readingĀ your comment reminded me of something I read about adding a
> display option to the script. So I added the line "export DISPLAY=:0.0" and
> the script now works with the image being
Adrian, readingĀ your comment reminded me of something I read about
adding a display option to the script. So I added the line "export
DISPLAY=:0.0" and the script now works with the image being displayed on
screen at the scheduled time from crontab
regards
Tim H
On 26/06/2022 22:03,
The reason is that there is no screen on which to display any windows.
A crontab 'job' is running in its own little login. It's a command line -only
session, hence nowhere to send graphical display output.
The 'no MTA' message is a different thing. The crontab task failed (nowhere to
display
I have a simple single line bash script which if I run from the command
line using ./tablet3 works perfectly (loads an image on the screen in a
borderless window)
#!/bin/bash
feh -x /home/mit/scripts/tablet3 oi-u.png
Now if I try to schedule this with crontab for example
14 21 * * *
4 matches
Mail list logo