Questions on calling external executables, not necessarily through MathLink.

learn more… | top users | synonyms

0
votes
0answers
111 views

How to use Pandoc in Mathematica 10?

Pandoc can convert documents in markdown etc. to HTML etc.. It can be worked well in cmd or bat file. I want to use Pandoc in Mathematica 10 on Windows7, but it doesn't work. Method 1: ...
3
votes
0answers
73 views

Can one combine Mathematica with bash script?

For example, I create a Mathematica nb file which can work on a set of parameter values or several files at once. It needs me to change the parameter after finishing computing one parameter. If I ...
2
votes
0answers
51 views

Has anybody been able to build WSTP applications under Visual Studio 2015's IDE?

I recently picked up an old project involving WSTP (formerly MathLink) programs, and as a starting place tried to get the demos provided by Wolfram to compile. The instructions were dated, referring ...
4
votes
1answer
119 views

RunProcess seemingly does not work on my Windows system [closed]

System: Windows 10 professional. Mathematica Version: 10.3.0 English. RunProcess doesn't work in my computer as described in tutorial. The right result the ...
0
votes
0answers
46 views

External app link closes when I attempt to use the link to it

I've been using Mathematica 5 and the Radia package. My code has over 50 cells, In Mathematica 5, Radia successfully is initiated at the first cell, and after that, results from it have been used by ...
4
votes
2answers
108 views

Why does Mathematica use a different $PATH than terminal?

I am trying to run bash commands from within Mathematica. Funnily enough, Mathematica seems to use a different $PATH environment than the system environment. If I try ...
0
votes
1answer
98 views

Run command didn't work [closed]

I am trying to use external ffmpeg.exe to convert list of image files into mp4 ...
8
votes
1answer
113 views

How to respond to password prompt with StartProcess?

Title says it all so let me show it on a Git example on Windows. Let's say you have your git executable on the system PATH: ...
3
votes
1answer
96 views

How to run Racket in Mathematica

My situation is that I write Racket/Scheme code to run some simulation. Then I'd like Mathematica to call Racket to run that code file. For example: the code file is named ...
0
votes
1answer
63 views

Call an executable

I have one data file, one executable file and one *.txt with the results from running the executable, all within the same folder. The folder has the path C : \ Users \ Dimitris \ Desktop \C32EXE ...
0
votes
0answers
124 views

Piping StandardForm from within GUI

I am working on a GUI project where I need to pipe a string I constructed in Mathematica into an external program. For example ...
3
votes
1answer
257 views

Can't run Bash scripts from within Mathematica 10.1

I am working on Debian 8 (Jessie) and Mathematica 10.1 (64-bit) Home Edition. I have created a script named curl_fetch.sh. It contains the line: ...
0
votes
0answers
40 views

How to launch the browser with a given url programatically? [duplicate]

The front-end can do this already for hyperlinks... I was wonder how to do this in general.
9
votes
0answers
104 views

Mathematica is getting slow when repeatedly calling an external program

I found a strange phenomenon that Mathematica is getting slow when I repeatedly called an external program by using ReadList. For example, the following code will display a significant increase of CPU ...
1
vote
1answer
158 views

How can I connect the Interactive Brokers TWS API to Mathematica using RLink for automated trading?

I do know there is documentation for the IB TWS Java API. However, instead of Java, I would like to establish a connection between Mathematica and the IBrokers API module using RLink as a 'proxy' to ...
1
vote
1answer
179 views

Running external program from command line

This command works on Windows: ReadList["!" <> "echo hello", String] Assuming the "!" suggests Windows command shell (verified as ...
1
vote
0answers
59 views

Exchange variable value between Mathematica and Autohotkey script

I have a script written with AutoHotkey and would like to send some data to and from Mathematica. For now I am using the CopyToClipboard[] function in Mathematica ...
1
vote
0answers
78 views

How to use RunProcess to run python interpreter

In a related question How to use RunProcess to import external function? @taliesin provides a very nice answer illustrating using RunProcess to launch a GO http server. Has anyone, or does anyone ...
1
vote
0answers
95 views

Exporting Classify Models

Currently I have created a simple classifier to classify sentiment from a string of text (or a tweet). The code is very basic and looks something like this: ...
0
votes
0answers
88 views

Can't get the most basic WSTP demo (addtwo.c) to build and link. Help?

I am trying to use WSTP and started with the addtwo demo. I converted the template file to C using wsprep, then in Visual Studio 2013, added that, the addtwo.c file, the wstp libraries and the header ...
3
votes
2answers
224 views

Interact with external program

I'm using NMinimize with Mathematica 7 using an external Fortran program to get the target value to minimize. I'm doing it using RunThrough with the variables as ...
1
vote
0answers
67 views

strange behavior when calling external linux command

My platform is Mac OS X Yosemite 10.10.1. When calling several external linux commands as the following: ...
5
votes
3answers
203 views

How to close external app from Mathematica?

Is there any analogue to SystemOpen for closing applications from Mathematica? Documentation says: SystemOpen["file"] is essentially equivalent to double-clicking the file icon in your operating ...
1
vote
1answer
79 views

RunProcess with mdfind and -onlyin option

I have problems running the bash code mdfind -onlyin /some/folder my_string This works on the terminal, but if I try ...
19
votes
1answer
2k views

How to programmatically extract mathematical formulas from Word with Mathematica 9?

I have a bunch of(1000+) Microsoft Word document in .Docx format. How can I programmatically extract the mathematical formulas from MS Word using Mathematica 9? This is what example looks like (or ...
1
vote
0answers
55 views

Is it possible to pipe the output of EvaluationMonitor to Excel?

I have an EvaluationMonitor setup to capture the points processed by NIntegrate. This is a case where the same function, integrated over the same region in cartesian coordinates yields a dramatically ...
8
votes
1answer
137 views

How to call external commands with parameters on Win7?

I'm trying to use the Win7 command prompt from a Mathematica notebook. I'd like to do a couple simple things, but I can't seem to get the syntax straight: open explorer.exe in a specific location ...
7
votes
2answers
143 views

Error when implementing StartProcess[] in loops (Do, While, Table)

I'm using Mathematica to control another program (Surface Evolver) through the terminal (ie using StartProcess[]; and ...
14
votes
0answers
168 views

Calling Sage functions from Mathematica

I recently found a very useful open-source math software called Sage, which provides many useful functions lacking in Mathematica. Since I'm more used to the Mathematica language instead of the ...
7
votes
1answer
149 views

How to get output from standard error in command line?

I'm trying to run some external command line program in Mathematica, and I have problem getting the output. For example, ...
1
vote
0answers
91 views

Attempt to Run[“inkskape”] fails

I wrote a little script to convert various graphics files (.ps, .eps, .pdf) to the raster ones (.png). Export[out, Import[in], ImageSize -> size] fails for some ...
1
vote
0answers
59 views

Operations perform differently in notebook and terminal interfaces

The following command executed on a Raspberry Pi equipped with a RaspiCam behaves differently depending on whether the command is run from the terminal (via ...
1
vote
1answer
177 views

Error loading shared library libML64i3.so

I'm trying to call Mathematica from C. I'm following the example http://mathematica.stackexchange.com/a/32864/14301 with ...
4
votes
1answer
2k views

Running a shell script within Mathematica

The title pretty much explains it and I have not found something similar already posted. Perhaps I am not searching for the correct title or maybe this is something very basic, but I would appreciate ...
3
votes
1answer
310 views

Setting bash environment within external call

I would like to run external command from Mathematica. For this I need to have bash environment configured via reading the content of ${HOME}/.bashrc file. When I ...
1
vote
2answers
110 views

Identify / change working directory for the InstallableNET runtime

I am currently attempting to use .NET/link to call a third party DLL from Mathematica using DLLDefinedFunction. I have been able to link against and call many of ...
6
votes
2answers
417 views

Using Read for calling external command does not release file handle

The standard and robust method for piping to/from external commands under Windows is to create a temporary file, save the input into it, pipe it to the command and save its output to a second file. ...
0
votes
0answers
214 views

Connection between Mathematica Connector/J and XAMPP MySQL Database

I have been fiddling around with a problem for a while now, and hope you can help me. Have searched for previous solutions, but nothing seems to work. My problem is as follows: I have XAMPP ...
4
votes
1answer
266 views

Is it possible to interact with an external program's command-line interface?

I am performing a calculation in Mathematica which relies on calls to an external program that acts as a black box for calculating a function $f$, and I would like to know if it is possible for ...
11
votes
1answer
839 views

Example program for calling Mathematica from C

I want to call Mathematica from a C program. Suppose I have two numbers x = 2 and y = 3. I want to define ...
4
votes
1answer
1k views

How can I run .exe file in Mathematica

we have a .exe file. It takes input as .txt file and gives output as another .txt file. ...
3
votes
0answers
121 views

CCodeGenerate and calling external functions

Is it possible to use CCodeGenerate to generate code which calls functions from other C libraries? For example, I would like to do something like this: ...
12
votes
1answer
654 views

How to run an external program in parallel with a Mathematica package?

Under Mathematica 8 (Linux x84_64) I was able to run an external program in parallel from a Mathematica package. However this procedure breaks down under Mathematica 9. Within my Mathematica package ...
15
votes
2answers
782 views

Get both output and return code of external program

Run["program"] will run an external program and return the return code. Import["!program", "String"] will run the program and ...
4
votes
1answer
449 views

RefProp in Mathematica

RefProp by NIST is a program that calculates the thermodynamic properties of fluids. I need to call certain RefProp functions ...
6
votes
1answer
708 views

Evaluate while external command is being run [duplicate]

Possible Duplicate: Computing Many Slow I/O Operations I'm launching an external command with the Mathematica front end that takes two arguments: ...
41
votes
3answers
5k views

Calling MATLAB from Mathematica

How can I call MATLAB functions directly from Mathematica and transfer data/variables between the two systems?
14
votes
1answer
883 views

Automating SFTP upload within Mathematica?

I have MMA-generated html and would like to automate uploading to a named directory to a web host via SFTP or HTTP POST, ideally without creating local temp files. The closest question I could find on ...
5
votes
1answer
416 views

How to create FORTRAN Cell?

I want to create a FORTRAN cell in Mathematica. ...
25
votes
3answers
1k views

Calling external commands without showing command prompt on windows

I'm playing around with some code that's calling external command-line commands on a windows platform, and when doing this, the command prompt will pop up quickly and then disappear. This is not a ...