Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2005, 10:17 PM   #1
Registered: Jul 2004
Posts: 107

Rep: Reputation: 15
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?
Old 04-20-2005, 10:22 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
DISPLAY=:0.0 <x-command>

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a way to switch to a tty with a command? sh0 Linux - Software 3 12-17-2009 08:26 PM
tty display corrupt after kill X, slack 10.1 nadroj Linux - Hardware 6 09-08-2005 11:36 PM
command to get tty number D. Marowa Linux - General 5 06-06-2004 07:47 PM
How do I display tty stuff in X jlturbos Linux - General 7 02-08-2004 08:53 PM
Bash: tty: command not found p0rt Linux - General 5 10-02-2003 11:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration