Re: bash script in mathematica?
- To: mathgroup at smc.vnet.net
- Subject: [mg117890] Re: bash script in mathematica?
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Sat, 2 Apr 2011 17:05:05 -0500 (EST)
On 4/2/11 at 2:41 AM, ozcelikov at gmail.com (voo) wrote: >How can I run a bash script in a Mathematica notebook. What I want >to do is: some calculations in mathematica nb file, -> mathematica >calls a bash script using the inputs of those calculations -> bash >script ends and mathematica uses the results of the bash script and >keeps on working. >Is this possible? Yes. Clearly, you must be running Mathematica on a Unix based system. So, look at the documentation for Run and RunThrough. Note, that while Mathematica can see values returned by RunThrough, it might be more convenient to use temporary files as a bridge.