is it possible to show the results in terminal or any other gui by a cron.
for example I just write a script to show the time at terminal at each minute. but it does nothing. So is it possible to cron can show results in GUI.
is it possible to show the results in terminal or any other gui by a cron.
for example I just write a script to show the time at terminal at each minute. but it does nothing. So is it possible to cron can show results in GUI.
You can do this by setting the DISPLAY
variable to :0
. For instance:
* * * * * export DISPLAY=:0; gedit
This crontab line will open the gui software gedit every minute.