process in one server out to another

6 views (last 30 days)
Leslie
Leslie on 31 Oct 2011
I am currently working on matlab 7.6.0 on linux and I want all the output and files it makes to go to another server, due to the low storage capacity I have in the server that runs matlab. Can someone tell me if this is at all possible? Using matlab only, I could try and use scp to move files between servers I just wonder if there is a way matlab can do this on its own, even if in another newer version.
thanks

Answers (2)

Jason Ross
Jason Ross on 31 Oct 2011
You might want to try one of the following if you have the Parallel Computing Toolbox / MDCS:
If you don't have those toolboxes, is it possible for you to export a directory on the server where you have more storage, then mount that directory on the the server with less storage? This would skip the copy step entirely and just write directly to the filesystem where things are going to end up, anyway. The downside would be that you would be writing all the data over the network, which may become a bottleneck depending on a number of factors -- and it may not be allowed for one of many reasons.

Daniel Shub
Daniel Shub on 1 Nov 2011
This is easy if both machines run Linux and the server and client are setup to allow ssh connections and X11 forwarding. If the client is running Windows you need to install an X environment. On the Linux server you can mount the client's disk with sshfs. From the client you can launch MATLAB on the server via ssh with X11 forwarding. In this way all graphical output will show up on the client, all disk operation will be based on the client disk, and all processing will occur on the server.
If you are doing lots of disk IO or interactive graphics, this will be slow. You can speed up the disk IO aspect by using NFS instead of sshfs, although this is potentially less secure and takes more configuring.

Categories

Find more on Manage Products in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!