I have been trying to open a terminal in GUI via crontab
. This question describes it can't be done as desktop and crontab runs separately. Is there a way where I can trigger script from crontab but later attach that parent process to the display ?
I'm asking as I have multiple scripts that I need to run for few hours and would like to monitor them and give input in terminal when some event is triggered. I have tried exporting the DISPLAY=:0.0
variable and then run terminal from crontab but mostly it says something like Can't find the Display at :0.0
.
I'm using the same user for crontab
and for the desktop session.
Thanks