default-terminal is a session option not a window option, so -w is wrong. In tmux 1.5 you don't need -w or anything, tmux will guess what type of option it is correctly.
On Wed, Sep 21, 2011 at 08:04:44PM +1000, craig lister wrote: > Hi, > > Any ideas on why this script :- > > #!/bin/sh > tmux new-session -d -s itmult > sleep 2 > tmux neww -a -n win1 'ssh -X [1]freddy@fred' > tmux neww -a -n win2 'ssh -X [2]freddy@fred1' > tmux set-option -w -t itmult:win1 default-terminal xterm > tmux set-option -w -t itmult:win2 default-terminal xterm > > tmux select-window -t itmult:0 > tmux -2 attach-session -t itmult > > produces this error :- > > session not found: itmult:win1 > session not found: itmult:win2 > > Perhaps it should be :- > > tmux set-option -w -t itmult:1 default-terminal xterm > tmux set-option -w -t itmult:2 default-terminal xterm > > ?? > > Thanks, Craig > > References > > Visible links > 1. mailto:freddy@fred > 2. mailto:freddy@fred1 > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users