LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   executing a command from tty sending it to an x display (https://www.linuxquestions.org/questions/linux-newbie-8/executing-a-command-from-tty-sending-it-to-an-x-display-315537/)

poiuytrewq 04-20-2005 10:17 PM

executing a command from tty sending it to an x display
 
i am hoping to be able to log in under ssh and run zenity (a program like xdialog) and send the command to the x display running on :0 so that it can properly open with gtk and all, not abort for lack of a display.

then when i return home to x i will have a dialog box waiting for me (reminding me of something i have to do etc)

is there any way to do this?

Tinkster 04-20-2005 10:22 PM

DISPLAY=:0.0 <x-command>

Just make sure that in the running x-session
xhost +localhost
has been run ...


Cheers,
Tink


All times are GMT -5. The time now is 09:24 AM.