LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to run program on a specific display? (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-run-program-on-a-specific-display-691032/)

thecake 12-16-2008 02:27 PM

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.

nflenz 12-16-2008 02:55 PM

Code:

DISPLAY="host:0.0" firefox # or whatever you want to run


All times are GMT -5. The time now is 10:27 AM.