Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-08-20 04:51:51

orphius70
Member
Registered: 2014-08-18
Posts: 3

[Solved] run multiple commands in xfce4-terminal

I have tried to do the following from a script and terminal will only run first command then closes;

# xfce4-terminal -x 'jclean ; echo ; read -p 'Press ENTER to close window'''

any ideas how to make this work?
I am using xubuntu 12.04

Last edited by orphius70 (2014-08-20 05:10:36)

Offline

#2 2014-08-20 05:34:02

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: [Solved] run multiple commands in xfce4-terminal

Try && instead of ; ?

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#3 2014-08-20 05:47:09

orphius70
Member
Registered: 2014-08-18
Posts: 3

Re: [Solved] run multiple commands in xfce4-terminal

sorry, i should have mentioned, i have tried the &&, &. Also setting a function and setting a variable inside script.
none have worked.

Offline

#4 2014-08-20 16:35:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] run multiple commands in xfce4-terminal

I don't think xfce4-terminal process commands like that. You need to imbed them with a call to the interpreter. Try:

xfce4-terminal -x bash -c 'jclean ; echo ; read -p "Press ENTER to close window"'

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2014-08-21 01:25:28

orphius70
Member
Registered: 2014-08-18
Posts: 3

Re: [Solved] run multiple commands in xfce4-terminal

ToZ...   THANK YOU!
That worked exactly as needed. If I might suggest this might be a good subject to add to wiki?

Offline

Board footer

Powered by FluxBB