System Commands cd Changes the current directory to dir. chdir Changes the current directory to dir. cputime Returns the current cputime used by OpenMatrix. date Returns the current date as a string in the format DD-MMM-YYYY. delete Deletes the file(s), f, or a graphic object, h. diary Records all commands and outputs of an interactive session to a file. If no arguments are passed, the diary state is toggled. To save outputs when running a script (non-interactive session), use outputlog. dir Directory listing of the current or specified directory. dos Executes a dos command on Windows. filesep Returns the path separator, dependent on the system. genpath Creates a path with the directory and sub-directories under dir. getpid Returns the current process ID. ls Displays information and contents of file(s) or directories. make_absolute_filename Creates an absolute path with input name, without checks made for the existance of the path on disk. mkdir Creates the directory newdir in the current working directory by default. outputlog Records all outputs to a file. If no arguments are passed, the outputlog state is toggled. rmdir Removes the directory dir. system Executes the shell command stringCommand. If executed in 'sync' mode or without additional inputs, the application waits until the execution is complete. If executed in 'async' mode, stringCommand is executed in a detached thread and control is returned to the application immediately. unix Executes the unix shell command stringCommand.