gpt4 book ai didi

ssh - 如何通过SSH执行Mathematica脚本

转载 作者:行者123 更新时间:2023-12-02 14:12:50 24 4
gpt4 key购买 nike

这是我的问题:我想通过ssh在远程计算机上运行Mathematica脚本,以便我可以关闭计算机上的终端并使其在远程计算机上运行。

出现我的问题是因为脚本以交互模式运行,所以当我关闭终端时,该进程也将关闭。

谢谢。

最佳答案

使用tmuxGNU screen

工作流程:

  • ssh进入远程机器
  • 启动tmux /屏幕,例如tmuxscreen
  • 在tmux / screen session 中启动Mathematica脚本
  • 分离tmux / screen session ,例如Ctrl + B d(tmux)或Ctrl + A d(屏幕)
  • 关闭ssh连接

  • 然后再:
  • ssh进入远程机器
  • 重新附加到tmux / screen session ,例如tmux attachscreen -d -R
  • View 完成的Mathematica脚本输出
  • 关于ssh - 如何通过SSH执行Mathematica脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15435378/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com