Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Running ps2pdf from within Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60646] Re: Running ps2pdf from within Mathematica
  • From: "Trevor Baca" <trevorbaca at gmail.com>
  • Date: Fri, 23 Sep 2005 04:19:50 -0400 (EDT)
  • References: <200509190845.EAA23551@smc.vnet.net><dgol5m$hnv$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

There were indeed path problems. The value of $PATH was,
unsurprisingly, set differently for my username and whatever the
default Mathematica username is in the subsession that Run[ ] creates.
One easy solution turns out to be to read my own .profile using the dot
operator ...

   Run[".  /Users/trevorbaca/.profile && ps2pdf foo.ps"]

... followed by && and the then call to ps2pdf.

This should've been obvious to me since the situation mirrors using
os.system ("system-calls-here") in python, were environment variables
must be set explicitly if you are, for example, running your .py from
cron.

Thanks much for the suggestions.

Trevor.


  • Prev by Date: Re: Problem in loading the Statistics package.
  • Next by Date: Re: Generate polynomial of specified degree
  • Previous by thread: Re: Running ps2pdf from within Mathematica
  • Next by thread: Re: Running ps2pdf from within Mathematica