Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I can not access the directory on my remote kernel these days. Therefore, I want to export the output of the computations to my local machine.

Some details:

  • My remote kernel is on a Tyan TX46 with 4 Opteron 2.2Ghz cpus and 32GB of ram and my local machine has a Intel(R)Core(TM)2CPU 6600 @2.40 GHz processor and 4gb ram.

  • I don't use parallel remote kernels.

  • I installed my remote kernel by some settings on Evaluation>Kernel Configuration Options.

Is there a way to do that?

share|improve this question
1  
I think the question has potential but you should add more details. Are you using parallel remote kernels? What are your OS? How do you open a remote connection? Etc.. Everything which could be important to a potential answerer. –  halirutan Feb 11 '13 at 2:50
    
@halirutan Thank you. I have added some details. Please see my edit. –  cesm Feb 11 '13 at 15:18
    
What do you mean "you can't access the directory"? How can you launch a remote kernel, e.g. through ssh, without being able to scp the file? Is this something you need to do once, or every time you run your Mathematica program? How much data are we talking about? –  Joel Klein Feb 11 '13 at 15:34
1  
I think you probably have to share a directory either on your or on the remote computer. Then you can export directly to the shared directory. Is this windows or linux? –  Ajasja Feb 11 '13 at 17:49
2  
@cesm Could you explain why you can't access the files on the remote machine then? Is there any chance you could figure out how to access them? I think this would be more convenient than trying to find a solution within Mathematica. Even if we did implement a MathLink based solution, it would be very very slow and unreliable for transferring gigabytes over the network. –  Szabolcs Feb 11 '13 at 20:34
show 8 more comments

1 Answer

In an effort to reduce unanswered questions:

I would create a folder on your computer (example C:\tmp) and give everyone read/write permissions

Shared

Then you can access the folder from the remote kernel by doing

d=RandomReal[{-1, 1}, {3, 2000}];
Export[Export["\\\\YOUR-COMPUTER-NAME_OR-IP\\tmp\\d.dat", d]

There are also other options:

  1. Set up a sftp server on your computer and connect to it using Rolf Mertig package.
  2. See if you can connect using scp.
  3. Read some papers while the administrators fix your network.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.