I'm trying to run a script that calls zenity from a crontab and it fails. The script works well from the command line.
I do pass the DISPLAY in the crontab:
* * * * * DISPLAY=:1 bin/myscript.sh > /tmp/debug.txt 2>&1
In the debug logs, I get:
This option is not available. Please see --help for all possible usages.
Trying to remove the options, I found that the problematic is "--text" because the following doesn't work:
zenity --warning --title "Fais gaffe" --text "Bientôt plus de batterie"
But the following does:
zenity --warning --title "Fais gaffe"
Asked by Colin Pitrat
(149 rep)
Sep 20, 2022, 10:23 AM