Reputation: 159
I want to launch multiple GUI programs from crontab. I have tried the following, but it did not work:
export DISPLAY=:0.0 && task1
export DISPLAY=:1.0 && task2
When I execute above crontab commands, I am getting error as:
**No more handles [gtk_init_check() failed]**
Upvotes: 1
Views: 367
Reputation: 3491
1) You need to allow clients to connect from any host using xhost + <clientmachineName>
So it will look like:
hostmachine$ xhost + <clientmachineName>
2) Then connect to the client machine either directly or from any third machine where the VNC is enabled.
If you are using the third machine & not the client machine itself, then you need to enable x11 forwarding, by executing ssh -X <username@clientmachine>
3) After that you can open the gui application of the host machine, from the client terminal running on the client machine or the client terminal running on the vnc session of the third machine, for which export DISPLAY=<thirdmachine>:<sessionid no>
is required.
Upvotes: 1