I have this script for file show.sh
#!/bin/sh
zenity --warning --text "here"
in crontab i have this line
* * * * * /home/user/Public/show.sh
then i restarted my crontab
user@user-170:~/Public$ sudo /etc/init.d/cron restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cron restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop cron ; start cron. The restart(8) utility is also available.
cron stop/waiting
cron start/running, process 5672
user@user-170:~/Public$
but I am waiting and nothing is happening and when i open Schedule Task software and run the script from there is show me a pop-up.
Why is this not work from crontab ?