Macaulay2
»
Documentation
Packages
»
Macaulay2Doc
»
The Macaulay2 language
»
system facilities
next
|
previous
|
forward
|
backward
|
up
|
index
|
toc
system facilities
Menu
Input and output:
printing to the screen
printing to a file
-- print to a file
reading files
getting input from the user
creating and writing files
saving polynomials and matrices in files
two dimensional formatting
file manipulation
-- Unix file manipulation functions
communicating with programs
using sockets
Loading files:
notify
-- whether to notify the user when a file is loaded
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
loadedFiles
fileExitHooks
-- a list of hooks (functions) to execute when the current file has been loaded
Loading path:
path
-- list of directories to look in
rootURI
rootPath
homeDirectory
-- the home directory of the user
minimizeFilename
-- minimize a file name
relativizeFilename
-- relativize a file name
toAbsolutePath
-- the absolute path version of a file name
searchPath
-- see
searchPath(List,String)
-- search a path for 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
addEndFunction
-- add an ending function
Timing computations:
Time
-- the class of all timing results
time
-- time a computation
timing
-- time a computation
elapsedTime
-- time a computation including time elapsed
elapsedTiming
-- time a computation using time elapsed
cpuTime
-- seconds of cpu time used since Macaulay2 began
currentTime
-- get the current time
sleep
-- sleep for a while
nanosleep
-- sleep for a given number of nanoseconds
Interface to the operating system:
alarm
-- set an alarm
exec
-- execute another program
exit
-- exit the program
fork
-- fork the process
show
-- display various objects in an external viewer
pager
-- display with paging
getenv
-- get value of environment variable
getWWW
-- get a web page
splitWWW
-- separate an http response into header and body
httpHeaders
-- see
httpHeaders(String)
-- prepend http headers to a string
processID
-- the process identifier
groupID
-- the process group identifier
setGroupID
-- set the process group identifier
kill
-- kill a process
kill(ZZ)
-- kill a process
quit
-- quit the program
wait
-- wait for child process
limitFiles
limitProcesses
Variables with information about the state of the current process:
commandLine
-- the command line arguments
scriptCommandLine
-- the command line arguments to be used when running a script
environment
-- the environment variables
version
-- information about this version of the program
Working with databases:
Database
-- the class of all database files
firstkey
-- get the first key
nextkey
-- the next key in a database
openDatabase
-- open a database file
openDatabaseOut
-- open a database file for writing
reorganize
-- reorganize a database file
Dealing with the garbage collector:
GCstats
-- information about the status of the garbage collector
collectGarbage
-- collect the garbage in memory
registerFinalizer
-- register a string that will be displayed when an object is garbage collected
The source of this document is in
Macaulay2Doc/ov_system.m2:120:0
.