Emacs可以运行位于远程服务器上的Matlab shell吗? [英] Is it possible for Emacs to run a Matlab shell that is located on a remote server?

查看:119
本文介绍了Emacs可以运行位于远程服务器上的Matlab shell吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Matlab模式(matlab.el)来运行一个matlab shell。唯一的问题是,Matlab位于远程主机上。这是甚么可能吗?如果是,请说明。我正在玩弄流浪汉,但无济于事。



谢谢。

解决方案

我刚刚通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆