In his letter, Eric Rossin asked:
I would like to "Exec" a command (under Unix), and somehow get
the result of the command back into GAP. E.g., say the result
of the GAP comandExec("prog < file");
returned a number, or even a list of numbers.
currently, there is no automatical mechanism for getting Exec results.
Your external program has to create a file like:
which will be read in by GAP by using 'Read'. the result can be obtained
from the global variable RESULT afterwards.
-- Alexander Hulpke, Lehrstuhl D f"ur |Ce po`eme est, en effet, divis'e en Mathematik, RWTH Aachen |cinq strophes successivement et respec- |tivement compos'ees de 3-1-4-1-5 vers, firstname.lastname@example.org | Jacques Bens: Le sonnet irrationnel