next
|
previous
|
forward
|
backward
|
up
|
top
|
index
|
toc
|
packages
|
Macaulay2 website
Macaulay2Doc
>
The Macaulay2 language
>
system facilities
system facilities
Menu
Loading files:
autoload
-- arrange for a function to be loaded automatically
initialization file
input
-- read Macaulay2 commands and echo
load
-- read Macaulay2 commands
needs
-- read Macaulay2 commands if necessary
end
-- stop loading a file
Echoing characters:
clearEcho
-- turn off echoing
setEcho
-- turn on echoing
Dumping and restoring the state of the system:
top level loop
restart
-- restart Macaulay2
addStartFunction
-- add a startup function
addEndFunction
-- add an ending function
Interface to the operating system:
alarm
-- set an alarm
currentDirectory
-- current working directory
exec
-- execute another program
exit
-- exit the program
fork
-- fork the process
getenv
-- get value of environment variable
processID
-- the process identifier
path
-- list of directories to look in
quit
-- quit the program
run
-- run an external command
sleep
-- sleep for a while
nanosleep
-- sleep for a given number of nanoseconds
Time
-- the class of all timing results
time
-- time a computation
timing
-- time a computation
elapsedTime
-- time a computation using time elapsed
elapsedTiming
-- time a computation using time elapsed
wait
-- wait for child process
Variables with information about the state of the current process:
commandLine
-- the command line arguments
environment
-- the environment variables
version
-- information about this version of the program
Dealing with the garbage collector:
collectGarbage
-- collect the garbage in memory
registerFinalizer
-- register a string that will be displayed when an object is garbage collected