exec different command in each sub window

Bug #556186 reported by flex
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Terminator
Confirmed
Wishlist
Unassigned

Bug Description

In terminator 0.91 it supports --layout to start terminator in a user defined layout.
But the option -e seems only affect the first sub window. I want the other sub windows can exec another command.
This is useful when i want to ssh some servers and place them into one terminator window.

Revision history for this message
Chris Jones (cmsj) wrote :

I'm not convinced that there is a sane way to represent what you want on the command line, but you could create a Layout in the Preferences editor with the terminals arranged how you want, and then use the Layout editor to set a custom command for each that makes them ssh to the right place? Is that sufficient for your needs?

Changed in terminator:
status: New → Incomplete
Revision history for this message
flex (frostynova) wrote :

Does custom command could be used in each child of a layout?
Even though, i think a command line arguments is more better, because the ip address of ssh is always not the same.

Revision history for this message
Chris Jones (cmsj) wrote :

yes, a custom command can be specified for each child.

How would you want the command line syntax to work? Show me what you would want to type and what it should do and we'll see if it can be made to work.

Revision history for this message
flex (frostynova) wrote :

i think we can use more than one "-e" option each time.

For example:
      terminator -e "ssh ip1" -e "ssh ip2" -e "ssh ip3" -e "ssh ip4"
This will create a window which is 2 rows and 2 columns automatically.

Another solution is user defined a layout previously, such as a 2x2 window. Then we pass more than one "-e" option.
If the number of the options is not more than 4, the commands will fill the sub window one by one, The blank sub window which has no command assigned to it use default profile.
Otherwise, if the number of the options is more than 4, throw an error.
But i think this one is not as flexible as the one above.

Revision history for this message
Chris Jones (cmsj) wrote :

I suspect it could be made to work. It would have to prevent specifying a previous layout, to avoid confusion.

Chris Jones (cmsj)
Changed in terminator:
status: Incomplete → Confirmed
importance: Undecided → Wishlist
Revision history for this message
tbird (wardzinski-todd) wrote :

I would really like to have this option as well.

Another idea might be to have (sorry if this doesn't tab correctly):

[layouts]
                [[default]]
                  [[window0]]
                    type = Window
                  [[child1]]
                    type = Terminal
                    parent = window0
                    <b>command = "ssh ip1" </b>

Revision history for this message
Chris Jones (cmsj) wrote :

tbird: what you want is different to this bug report, and is entirely possible using pretty much exactly the syntax you suggested.

Revision history for this message
tbird (wardzinski-todd) wrote :

Well that's awesome :-). Shall I file a separate wishlist item? I could probably develop it myself if I had a good starting place to look in the code.

Revision history for this message
Chris Jones (cmsj) wrote : Re: [Bug 556186] Re: exec different command in each sub window

Hi

No need for a bug, I meant it is possible to do that right now. It already exists, I just fail at documenting it.

Chris Jones

On 20 Jul 2010, at 17:44, tbird <email address hidden> wrote:

> Well that's awesome :-). Shall I file a separate wishlist item? I
> could probably develop it myself if I had a good starting place to look
> in the code.
>
> --
> exec different command in each sub window
> https://bugs.launchpad.net/bugs/556186
> You received this bug notification because you are a member of
> Terminator, which is subscribed to Terminator.

Revision history for this message
Fabiano Francesconi (fabiano-francesconi) wrote :

I'd like to have a specific command-line for that purposes and I totally agree with flex: that's the gnome-terminal syntax, by the way.

Will this be implemented somehow?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.