MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Emacs是否可以运行位于远程服务器上的Matlab Shell? (https://www.labfans.com/bbs/showthread.php?t=22732)

poster 2019-12-10 16:49

Emacs是否可以运行位于远程服务器上的Matlab Shell?
 
我希望能够使用Matlab模式(matlab.el)运行matlab shell。唯一的问题是,Matlab位于远程主机上。这有可能吗?如果是这样,请解释。我目前在玩流浪汉,但无济于事。

谢谢。


回答:
我刚刚尝试通过ssh使用emacs matlab模式,没问题

必须制作一个加载matlab的脚本,不能只在matlab.el中指定命令

所以:

/ home / second / remoteMatlab:

#!/bin/bash ssh orac matlab -nodisplay 其中orac是具有matlab的主机。您可以在此处将命令传递给ssh。我使用ssh config和密钥身份验证,所以这里只需要主机名

在matlab.el中找到

(defcustom matlab-shell-command 并设置为例如

(defcustom matlab-shell-command "/home/second/remoteMatlab"

[url=https://stackoverflow.com/questions/1133498]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 23:24

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.