next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
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.

Functions with optional argument named PreRunScript :

See also

For the programmer

The object PreRunScript is a symbol.