Hi Steve, this might not be exactly what you're looking for (as it won't work
from scripts executed on the remote server), but it might solve your problem.
Try hitting `<TMUX_PREFIX> :`
This triggers the tmux's `command-prompt` command, which lets you enter tmux
commands directly. Personally I use it to create new sessions, by entering `new
-s session_name` into the command prompt.
Hope this helps :)
-jimeh
On Monday, 20 August 2012 at 03:37, Stephen Thirlwall wrote:
> Lets say I've got a tmux session running locally with two windows, and in
> window 2 I run: ssh remotehost
>
> So I've got window 1 with a local shell, and window 2 with a remote shell.
>
> In window 1 I can do things like tmux lsp or tmux split-window,
> but window 2 is a 2nd-class citizen: tmux <cmd> doesn't work.
>
> Is there some ssh-tunnel magic or something I can use so that remote
> invocations of tmux <cmd> talk back to the local tmux server?
>
>
> Steve
>
> ------------------------------------------------------------------------------
> 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 (mailto: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