I explain the problem a bit above, but basically that's it. I want to add a script in crontab that runs every minute. The script, on the other hand, should show a simple greeting message. He has no more.
Chrontab line:
* * * * * sh /tmp/notify-test.sh
As I understand it, that would execute my "sh" every minute, right?
On the other hand, this is the script:
#!/bin/bash
/usr/bin/notify-send "Hola" "¿Qué tal?"
The notify-send
command works correctly in Terminal. I added the path /usr/bin/
because I had read that I had to enter the complete path of the command. Using the whereis
I found that route.
After the supposed minute, the syslog of Ubuntu shows me CMD (sh /tmp/notify-test.sh)
, ergo I deduce that it executes correctly. Is the problem in the content?
Greetings!