tags:

views:

17

answers:

1

Hi, I want to write a buil.xml file that should open a new terminal for every client/server i want to use for testings.

How can i do that? i tried this code to run for example the 'ls' command on the newly created terminal. He created the terminal but doesn't run the cmd.

thanks.

A: 

Have a look at the exec-tag:

<exec executable="emacs">
  <env key="DISPLAY" value=":1.0"/>
</exec>

You should be able to open a terminal using either of the tags, and provide arguments similar to:

gnome-terminal --geometry 69x36+0+60 -x sh -c command_string
  • --geometry : So that you don't have to rearrange the terminals at each startup
  • -x : Execute the remainder of the command line inside the terminal.
  • sh -c Start shell and read commands from the command_string operand instead of from the standard input.
aioobe