I'm scripting the creation of tmux sessions and windows, I can't get beyond
the first neww command because any windows created after that say they
conflict with index 2.

The real question is, how do I create new windows in an existing session
from outside of tmux?

Because this right here is not working for me.

Executing: tmux new -d -s ssh
Executing: tmux neww -d -t ssh -n front01 ssh front01
Executing: tmux neww -d -t ssh -n front02 ssh front02
create window failed: index in use: 2
Executing: tmux neww -d -t ssh -n business01 ssh business01
create window failed: index in use: 2

And it just keeps going like that for the rest of the loop.

I could use new-session with a target argument and have it group the
windows together but that seems unintuitive and they would still be killed
as two different sessions.

-- 
Hälsningar / Greetings

Stefan Midjich
[De omnibus dubitandum]
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to