Hello all:
i did a script called MYSCRIPT like this:
Code:
Code:
echo "hello"
/usr/bin/notify-send "hello"
echo hello > /root/msg.txt
saved it in /root directory, applied chmod +x
So, if i type in a shell: ./MYSCRIPT, it nicely show me HELLO in the shell, and HELLO in a graphical popup
ok, now i create another script MYSCRIPTcron
Code:
*/1 * * * * /root/MYSCRIPT
saved it in /root directory, applied chmod +x
now, i added it: crontab -r; crontab MYSCRIPTcron; crontab -l
and i see it in the crontab list.
Everytime i check /root, i can see the file called msg.txt, if i delete it, it appears each minute, so crontab is working
BUT I CANT GET IT TO SHOW ME ANY NOTIFICACION
i also tryed with
Code:
*/1 * * * * DISPLAY=:0.0 /root/MYSCRIPT
what must i do to get a popup, or a shell message with that "hello" message?