On 11 December 2011 14:34, Rafael Sadowski <raf...@sizeofvoid.org> wrote:
> Hi tmux-users@,
>
> I'll create a new session with some default windows. Everything works
> fine, but my first window is never '(LOG) messages'. The first window is
> always my $SHELL! Any advice for me?
>
> tmux new-session -d -s main
> tmux new-window -t main:0 -n '(LOG) messages' 'sudo tail -f /var/log/messages'

That's because the man page says:

new-session [-d] [-n window-name] [-s session-name] [-t
target-session] [shell-command]

Guess what happens when you don't specify a command?  In your case, you want:

tmux new-session -d -s main -n '(LOG) secure' "exec ....."

-- Thomas Adam

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to