next | previous | forward | backward | up | top | index | toc | Macaulay2 website
RunExternalM2 :: PreRunScript

PreRunScript -- a way to impose resource limits

Description

This option's value is a string containing a shell command that can impose any resource limits on the Macaulay2 process started by runExternalM2.

By default, it is set to the shell command

true

but you can set it to things like

ulimit -t 5

(to limit CPU time to 5 seconds) or something more complicated:

ulimit -S -m 654243 && ulimit -H -t 50

In all cases, it should be a single command such that appending

&& other_command

results in a valid shell command.

See also

Functions with optional argument named PreRunScript :

For the programmer

The object PreRunScript is a symbol.