Yes you should check "tmux ls" to see if the exact session you want is
there.


On Thu, Jun 28, 2012 at 03:04:35PM -0500, clow...@clownix.net wrote:
> 
> Yes but in my case it is just a safety killing, if the tmux with the exact
> matching name exists I want to kill it but if it is not exactly the same I
> want to let it work.
> When a machine is launched, as I often use the same names, if some kind of
> zombi with the same name exists I like to be sure to kill it first, could
> there be an "exact match" option to the killing?
> If not, I will just parse the sessions to look for an exact match and kill
> only upon exact match.
> Thank you very much anyway,
> Regards
> Vincent Perrier
> 
> > If there is only one session that could possibly match "cloo" tmux picks
> > it because it must be the one you mean, there is no alternative. If
> > there was any doubt, then it doesn't. For example:
> >
> > $ tmux kill-server
> > $ tmux new -ds clooA
> > $ tmux new -ds clooB
> > $ tmux kill-session -t cloo
> > more than one session: cloo
> > $
> >
> >
> > On Thu, Jun 28, 2012 at 01:48:27PM -0500, clow...@clownix.net wrote:
> >>
> >> I was wrong:
> >> Cloonix destroys any machine with the same name before starting a tmux.
> >>
> >> do:
> >>
> >> tmux new-session -s cloon -d /bin/bash
> >> tmux list-session
> >> tmux kill-session -t cloo
> >> tmux list-session
> >>
> >>
> >> You can understand that creating the cloo machine destroys the cloon
> >> machine
> >> One letter is missing in the name identification for the kill.
> >> Please confirm that you see the same thing, I am on a debian squeeze.
> >> Thanks for the very usefull software:)
> >>
> >> Regards
> >> Vincent Perrier
> >>
> >>
> >> > On 28 June 2012 14:19,  <clow...@clownix.net> wrote:
> >> >>
> >> >> Hello
> >> >> I have replaced in cloonix (a software launching virtual machines)
> >> >> screen
> >> >> with tmux, I am very happy about it, but there is a small bug in the
> >> >> names we can choose:
> >> >>
> >> >> my software does: "tmux new-session -s name_cloonix_machine -d
> >> >> exe_cloonix"
> >> >>
> >> >> If the names are: "ABCDE" for the first machine and "ABCD" for the
> >> >> second
> >> >> machine then the launch of the second machine kills silently the
> >> first
> >> >> one.
> >> >
> >> > I do not understand this.  Can you provide examples of what's breaking
> >> > things?
> >> >
> >> > -- Thomas Adam
> >> >
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> 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
> >
> 

------------------------------------------------------------------------------
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