我在tmux中使用Mosh
我想在mosh连接成功后运行命令"tmux attach -t 0 -d“。
通过mosh登录成功后,如何自动调用命令重新附加tmux?
发布于 2012-06-12 22:28:31
这是可行的:
mosh $REMOTE tmux attach # I didn't expect this to work但这两个都不是:
mosh $REMOTE "tmux attach -d" # This should probably work
mosh $REMOTE tmux attach -d # This correctly interprets -d as a mosh option更新:正如Chris Johnson所指出的,您可以使用'--‘参数关闭选项处理,以便将整个tmux命令作为一个命令发送到远程服务器:
mosh $REMOTE -- tmux attach -t 0 -dhttps://stackoverflow.com/questions/10990882
复制相似问题