[previous][up][top][index]
search for:

executing other programs -- an overview

The run command can be used to execute another program, after which control will return to Macaulay 2.

To pass the contents of a string as input to a program or command, open an output file with openOut whose name is the character '!' followed by the command, write the data to the resulting file, and then close the file. The output is displayed on the screen.

If you want to collect the output from a command in a string, use get with a file name consisting of the character '!' followed by the command.


[previous][up][top][index]
search for: