Bonjour. Je voudrais faire un message d'alerte qui s'affiche au premier plan sur le bureau.
J'ai fait un mini script:
#!/usr/bin/bash
zenity --info --text="<big><big>Faire la sauvegarde hebdomadaire</big></big>"
puis je l'ai mis dans une tâche cron.houurly ( pour les essais.)
Apparemment elle passe bien mais un peu vite.
[thierry@thierry ~]$ sudo systemctl status crond.service
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-02-01 09:08:13 CET; 6h ago
Main PID: 1306 (crond)
Tasks: 1 (limit: 19064)
Memory: 1.7M
CPU: 326ms
CGroup: /system.slice/crond.service
└─1306 /usr/sbin/crond -n
févr. 01 13:01:02 thierry.bureau sSMTP[14151]: Cannot open mail:25
févr. 01 14:01:01 thierry.bureau CROND[15063]: (root) CMD (run-parts /etc/cron.hourly)
févr. 01 14:01:01 thierry.bureau run-parts[15075]: (/etc/cron.hourly) starting sauvegarde
févr. 01 14:01:01 thierry.bureau run-parts[15080]: (/etc/cron.hourly) finished sauvegarde
févr. 01 14:01:02 thierry.bureau sSMTP[15072]: Unable to locate mail
févr. 01 14:01:02 thierry.bureau sSMTP[15072]: Cannot open mail:25
févr. 01 14:01:02 thierry.bureau CROND[15062]: (root) MAIL (mailed 279 bytes of output but got status 0x0001
)
févr. 01 15:01:01 thierry.bureau CROND[15719]: (root) CMD (run-parts /etc/cron.hourly)
févr. 01 15:01:02 thierry.bureau sSMTP[15727]: Unable to locate mail
févr. 01 15:01:02 thierry.bureau sSMTP[15727]: Cannot open mail:25
Je ne dois pas avoir la bonne méthode.