Actually, I was thinking more along the lines of a tmux "fork" command.
tmux local-client -> fork child process -> SSH, etc. -> returns to
tmux local when child process dies.
like if this worked....
while true; do
tmux detach
<command>
tmux attach
end
But, of course, that doesn't work because you wind up in the parent
shell after you detach.
You can't fork in the shell within tmux -- I want to fork from the
tmux client itself.
I don't THINK that implies parent process control or remote control of
the local.
On Jun 3, 2011, at 1:23 AM, Nicholas Marriott wrote:
> This isn't really possible and I'm not sure it is a good idea to
> make it
> so - having remote hosts able to control local sounds like a security
> nightmare.
>
> You could maybe rig something up by having the remote host ssh back to
> the local but it would be fragile...
>
>
> On Thu, Jun 02, 2011 at 01:20:28PM -0500, Stephen Prater wrote:
>> So, I have an auto-attaching tmux session on my local machine, and an
>> auto-attaching tmux-session on my remote machine. What I would like
>> to do is ssh into the remote and have it completely replace the local
>> tmux session, so that it doesn't result in a nested session.
>>
>> Ideally, detaching from the remote session would reattach the local
>> session.
>>
>> Anybody have any ideas for shell incantations or tmux preferences to
>> get this to work?
>>
>> ------------------------------------------------------------------------------
>> Simplify data backup and recovery for your virtual environment with
>> vRanger.
>> Installation's a snap, and flexible recovery options mean your data
>> is safe,
>> secure and there when you need it. Discover what all the cheering's
>> about.
>> Get your free trial download today.
>> http://p.sf.net/sfu/quest-dev2dev2
>> _______________________________________________
>> tmux-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tmux-users
>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users