有什么方法可以像nodejs一样运行tmuxcmds 。我在网上搜索过,但找不到任何有用的东西可以帮助我消除错误。tmux kill-servertmuxinator start rails_servers
我正在通过shelljsnpm 模块尝试此操作,但对我没有帮助。
我收到此错误;
Pseudo-terminal will not be allocated because stdin is not a terminal.Permission denied (publickey).
当使用这些代码行tmux通过 nodejs 运行 cmds 时
shell.exec('ssh -t myremotemachineaddress tmux kill-server');
shell.exec('ssh -t myremotemachineaddress tmuxinator start rails_servers');
这里,shell是用于shelljsnpm 模块的变量。
任何帮助将不胜感激。提前致谢。