Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-02-25 04:29:25

nmanbamboo1980
Member
From: Mumbai
Registered: 2011-02-25
Posts: 3

How do you start a terminal from command line with the DISPLAY optionS

Hello All
This is my first post on this Forum.

I have been using xfce for some time and got interested in launching a terminal from the command line.
So now I have a script which runs a program but opens it by launching it in a terminal window like below.

terminal -T "Hello" -e "./hello.sh"

This script called Launch.sh contains the above line and works perfectly well as long as I run it from the same PC.

Now I need to know how to use the --Display option for Launching a terminal.
I need this because if I ssh to a PC contatining this Launch.sh and try to run the command Launch.sh, I get a message

(terminal:7061): Gtk-WARNING **: cannot open display:

How do I make the terminal open in the remote PC?

Thanks in advance.

Offline

#2 2011-02-25 07:40:02

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: How do you start a terminal from command line with the DISPLAY optionS

DISPLAY="blabla" terminal <options>

Offline

Board footer

Powered by FluxBB