Crontab doesn't execute the .sh files

191 views Asked by At

I recently discover crontab on my raspberry pi and I wanted to try it so I made different lignes for execute simples programs: $

0 21 * * * /home/pi/Desktop/Programmation/Batch/msg.sh

30 21 * * * /home/pi/Desktop/Programmation/Batch/msg2.sh

0 22 * * * /home/pi/Desktop/Programmation/Batch/msg3.sh

15 22 * * * /home/pi/Desktop/Programmation/Batch/msg4.sh

30 22 * * * /home/pi/Desktop/Programmation/Batch/msg5.sh

35 22 * * * /home/pi/Desktop/Programmation/Batch/msg6.sh
(I know: it's not batch but sh !!) Here is the .sh program (there are all the sames):

#!/bin/bash
echo -e "Hello World !"
sleep 1000000000000000000
But that's doesn't work !! I look on internet and I tried to change the TZ of crontab, I tried the command timedatectl to verify mi date settings :

Local time: sam. 2020-10-10 18:23:37 CEST
           Universal time: sam. 2020-10-10 16:23:37 UTC
                 RTC time: n/a
                Time zone: Europe/Paris (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

And That doesn't work... So please help me !! Thank you very much !!!

0

There are 0 answers