将 Textmate 与通过 ssh 访问的应用程序结合使用
我喜欢使用 textmate 编辑脚本,以便使用 R、Stata 和 SQL 进行分析。最近,我不得不使用我们的网格服务器环境,因为数据集对于我的计算机来说太大了,并且使用 R 和 Stata 的网格上的内存分配比我的计算机提供的要大得多。
我当前的工作流程是通过 ssh 窗口连接打开这些托管在网格(R 和 Stata)上的程序。我在 textmate 中进行脚本编辑,这些文件存在于我的计算机或服务器目录中。当我想批量运行它们时,我只需通过 ssh 接口提交整个文件。但是,如果我想实时排除故障并在 Stata 或 R 中运行命令,我必须在 textmate 中编写代码,选择它,然后将其粘贴到托管状态或 R 会话的 ssh 窗口中。
我想知道是否有人知道如何配置 textmate,以便您只需在 textmate 中突出显示并按一些快捷键即可将选择代码直接发送到 ssh 会话中的 Stata 或 R。
我查到的所有内容都讨论了如何使用 ssh 访问要在 textmate 中编辑的文件。就我而言,我正在研究如何使 textmate 与使用 ssh 访问的服务器应用程序进行交互。
I like using textmate to edit scripts for my analysis using R, Stata and SQL. Recently, I've had to use our grid server environment because the datasets are too large for my computer, and the ram allocations on the grid using R and Stata are much larger than what my computer has too offer.
My current workflow is to open up these programs hosted on the grid (R and Stata) through ssh window connections. I do my script editing in textmate, files that exist either on my computer or on my server directory. When I want to run them in batch, I just submit the entire file through the ssh interface. However, if I want to troubleshoot and run commands in Stata or R in real time, I have to write up my code in textmate, select it, then paste it into the ssh window hosting the state or R session.
I was wondering if anyone knew how to configure textmate such that you can just highlight in textmate and hit some shortcut keys to send the select code directly to Stata or R in the ssh sessions.
Everything I've looked up talks about how to access files to edit in textmate using ssh. In my case, I'm looking to how to make textmate interact with server applications that are accessed using ssh.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道你到底想做什么。
通过 ssh 安装可能是一种选择:
http://www.rojotek.com/blog/2010/05/31/mounting-a-folder-on-osx-over-ssh/" rel="nofollow"> rojotek.com/blog/2010/05/31/mounting-a-folder-on-osx-over-ssh/
然后你有一个本地目录,你可以在textmate中打开它,文件位于远程服务器,全部通过 ssh,所以它应该可以工作。
或者使用 Rsync:
http://kennethreitz.com/remote-textmate-development-via- ssh-and-rsync/
如果您熟悉 emacs/vim,您可以通过 ssh shell 使用它进行小型编辑,或者使用 xemacs 通过 ssh 进行 X-session-forwarding。 xemacs 具有出色的 R 支持。
顺便说一句,你做什么样的分析需要更多的计算能力?
I don't know exactly what you want to do.
Mounting over ssh could be an option:
http://www.rojotek.com/blog/2010/05/31/mounting-a-folder-on-osx-over-ssh/
Then you have a local dir that you can open in textmate and the files are located on the remote server, all via ssh so it should probably work.
Or use Rsync:
http://kennethreitz.com/remote-textmate-development-via-ssh-and-rsync/
If you are familiar with emacs/vim, you could use that via the ssh shell for small edits or use xemacs with X-session-forwarding over ssh. xemacs has excellent R support.
btw, what kind of analysis do you do that requires more computing power?