Re: [Dorset] Crontab issue

2022-06-28 Thread Adrian Warman
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 displayed on screen at the 
> scheduled time from crontab
> 
> regards
> 
> 
> Tim H
> 
> On 26/06/2022 22:03, Adrian Warman via dorset wrote:
>> 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 graphic output), so crontab would like to send an error report. 
>> But there's no email service set up for the OS to use. MTA is Mail Transfer 
>> Agent, which on Linux is typically sonething like sendmail, but also 
>> (typically) is not configured and running by default.
>> 
>> Adrian W.
>> 
> 
> -- 
>   Next meeting: Online, Jitsi, Tuesday, 2022-07-05 20:00
>   Check to whom you are replying
>   Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
>   New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-07-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Crontab issue

2022-06-27 Thread 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 displayed on 
screen at the scheduled time from crontab


regards


Tim H

On 26/06/2022 22:03, Adrian Warman via dorset wrote:

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 graphic output), so crontab would like to send an error report. But 
there's no email service set up for the OS to use. MTA is Mail Transfer Agent, 
which on Linux is typically sonething like sendmail, but also (typically) is 
not configured and running by default.

Adrian W.



--
 Next meeting: Online, Jitsi, Tuesday, 2022-07-05 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Crontab issue

2022-06-27 Thread Adrian Warman via dorset
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 graphic output), so crontab would like to send an error report. But 
there's no email service set up for the OS to use. MTA is Mail Transfer Agent, 
which on Linux is typically sonething like sendmail, but also (typically) is 
not configured and running by default.

Adrian W.

-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-07-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Crontab issue

2022-06-26 Thread Tim
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 * * * /home/mit/scripts/tablet3/tablet.sh

Nothing happens, the images fails to appears on screen

If I check syslog I have the following lines

Jun 26 21:13:01 NX1 cron[1088]: (mit) RELOAD (crontabs/mit)
Jun 26 21:14:01 NX1 CRON[36023]: (mit) CMD 
(/home/mit/scripts/tablet3/tablet.sh)
Jun 26 21:14:01 NX1 CRON[36022]: (CRON) info (No MTA installed, 
discarding output)


I am no expert with scripts or contrab, so if somebody would be kind 
enough to point us in the write direction please



Regards


Tim H


--
 Next meeting: Online, Jitsi, Tuesday, 2022-07-05 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk