This method runs an external program which has already been loaded using findProgram. The results of this run are available in a ProgramRun object.
i1 : gfan = findProgram("gfan", "gfan --help")
o1 = gfan
o1 : Program
|
i2 : runProgram(gfan, "_version") o2 = 0 o2 : ProgramRun |
i3 : oo#"output"
o3 = Gfan version:
gfan0.6.2
Forked from source tree on:
1506606121 Thu Sep 28 15:42:01 2017
Linked libraries:
GMP 6.2.1
Cddlib YES
SoPlex NO
Singular NO
|
i4 : runProgram(gfan, "_foo", RaiseError => false) o4 = 256 o4 : ProgramRun |
i5 : oo#"error"
o5 = UNKNOWN OPTION: _foo.
USE --help AS A SINGLE OPTION TO VIEW THE HELP TEXT.
|
The object runProgram is a method function with options.