You are not logged in.

#1 2005-03-07 22:22:42

alanh02
Member
Registered: 2004-03-24
Posts: 20

Problem with Xterm in xfce4

This is probably something I have missed but here goes.

The window environment is xfce4 and I have a few things I want to start from the menu. Because I like to see them running I have checked the "run in terminal" check box.

Problem is that the xterm window appears and then disappears immeadiatly and the program doesnt run. I cant see any messages in the messages log or the .xsession-errors. When I start the script from an xterm window its fine, but if I run it from the run dialog box with run in terminal selected again no xterm window, but the script does run

The program I am trying to run looks like

sudo /home/alanh/script/some_script

Thanx in advance

Alan

Offline

#2 2005-03-07 23:03:44

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Re: Problem with Xterm in xfce4

Well...instead of selecting "Run in terminal" you COULD just make the command be:

xterm -e command

Where "command" is the command you want to run.  This will spawn an instance of xterm that will launch the app.

Does this work for you?

--- EDIT --- I just tried this myself and I now realize that the term launched doesn't print the output of the command run...WTF? --- /EDIT ---

Offline

#3 2005-03-08 10:44:13

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: Problem with Xterm in xfce4

I just tried this myself and I now realize that the term launched doesn't print the output of the command run.

It does, it just dissapears after program exits and you don't see anything. Use this:

xterm -hold -e "ls"

Offline

#4 2005-03-08 14:37:34

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Re: Problem with Xterm in xfce4

Yeah, micro's solution works!  Cool.

Offline

#5 2005-03-08 23:20:43

alanh02
Member
Registered: 2004-03-24
Posts: 20

Re: Problem with Xterm in xfce4

Yep works for me also     Thanks A lot

Offline

Board footer

Powered by FluxBB