LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-20-2005, 10:17 PM   #1
poiuytrewq
Member
 
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

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

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


Cheers,
Tink
 
  


Reply


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


All times are GMT -5. The time now is 01:41 PM.

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