Emacs可以运行位于远程服务器上的Matlab shell吗? [英] Is it possible for Emacs to run a Matlab shell that is located on a remote server?
问题描述
谢谢。
我刚刚通过ssh尝试使用emacs的matlab模式,没有问题
不得不制作一个加载matlab的脚本,不能指定命令matlab.el
so:
/ home / second / remoteMatlab:
#!/ bin / bash
ssh orac matlab -nodisplay
其中orac是具有matlab的主机。你可以在这里传递命令到ssh。我使用ssh配置和密钥身份验证,所以只需要在这里的主机名
在matlab.el中,找到
(defcustom matlab-shell-command
并设置为eg
(defcustom matlab-shell-command/ home / second / remoteMatlab
pre>
I would like to be able to use Matlab-mode (matlab.el) to run a matlab shell. The only problem is, Matlab is located on a remote host. Is this even possible? If so, please explain. I'm currently playing around with tramp but to no avail.
Thanks.
解决方案I just tried using the emacs matlab mode through ssh, no problem
had to make a script which loads matlab, couldn't just specify the command in matlab.el
so:
/home/second/remoteMatlab:
#!/bin/bash ssh orac matlab -nodisplay
where orac is the host which has matlab. you can pass commands to ssh here. i use ssh config and key authentication so only need the hostname here
in matlab.el, find
(defcustom matlab-shell-command
and set to eg
(defcustom matlab-shell-command "/home/second/remoteMatlab"
这篇关于Emacs可以运行位于远程服务器上的Matlab shell吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!