MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Confused about Export on a remote kernel

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129182] Confused about Export on a remote kernel
  • From: ExportConfused <rm3 at ips.edu>
  • Date: Thu, 20 Dec 2012 03:20:26 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

I'm stumped by this one.

I'm running a Mathematica frontend on my laptop connected to a MathKernel on a server.  I create a plot and use
  
  Export["plot1.pdf", g1]

to create a PDF of the graphics g1.  If I ssh into the server the exported graphics is there.

A bit later, with a new graphics, I run 

  Export["plot2.pdf", g2]

and no sign of the plot.  But if instead I type 

  Export["/tmp/plot2.pdf", g2]

the plot shows on /tmp of my laptop, not the server.  The In[] and Out[] labels still say that it was the server kernel that executed the command (as indicated by the label in the Evaluator option of the Notebook). 

Executing

  Run[ "ls -1 > /tmp/listing"];
  FilePrint["/tmp/listing"]

I still get a listing of my home directory on the server and there is a lingering /tmp/listing file on the server.

Shouldn't Export run on the server and save its output to the server's filesystem?

I'm still on Mathematica 8.0.4 for Mac on the laptop and the server is at 8.0.4 for Linux.

Any ideas how I debug this?



  • Prev by Date: Re: Incorrect Summation
  • Next by Date: Re: Applying "Replace" to subsets of lists
  • Previous by thread: Re: Linear regression notebook won't work in Version 9
  • Next by thread: Re: Confused about Export on a remote kernel