LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-16-2008, 02:27 PM   #1
thecake
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
Command to run program on a specific display?


I'm looking for a command that does this basically:

indisplay.sh cmd display

Code:
#!/bin/bash

DISPLAYTMP=$DISPLAY
export DISPLAY=$2
(eval $1)&
export DISPLAY=$DISPLAYTMP
Yes, I realize I just wrote myself a shell script that does what I'm asking for, but this seems so basic there must be a default command for it.
 
Old 12-16-2008, 02:55 PM   #2
nflenz
Member
 
Registered: Feb 2006
Distribution: CRUX 2.4
Posts: 96

Rep: Reputation: 18
Code:
DISPLAY="host:0.0" firefox # or whatever you want to run
 
  


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
Kill specific Wine program from Command Line Brian114 Linux - Software 4 06-07-2011 04:02 AM
A Command to display a specific line?? pheardotcom Linux - Newbie 7 11-02-2009 11:15 PM
Can i run command with specific TTY. 786 Linux - General 1 07-21-2008 02:05 PM
run program automatically at specific time simon_qwl Programming 2 03-20-2005 10:58 AM
dual monitor, launch program specific display enzo250gto Linux - Software 2 01-27-2005 02:30 PM


All times are GMT -5. The time now is 03:14 AM.

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