System Utilities
Return the current time as the number of seconds since the epoch.
Returns the current local time as the number of days since Jan 1, 0000.
Convert a value returned from `time' (or any other nonnegative
integer), to the local time and return a string of the same form as
`asctime'.
Given a value returned from time (or any nonnegative integer), return a
time structure corresponding to CUT.
Given a value returned from time (or any nonnegative integer), return a
time structure corresponding to the local time zone.
Convert a time structure corresponding to the local time to the number
of seconds since the epoch.
Convert a time structure to a string using the following five-field
format: Thu Mar 28 08:40:14 1996.
Format the time structure TM_STRUCT in a flexible way using the format
string FMT that contains `%' substitutions similar to those in
`printf'.
Convert the string STR to the time structure TM_STRUCT under the
control of the format string FMT.
Return a vector containing the current year, month (1-12), day (1-31),
hour (0-23), minute (0-59) and second (0-61).
Return the date as a character string in the form DD-MMM-YY.
Return the difference (in seconds) between two time values returned from
`clock'.
Return the CPU time used by your Octave session.
Return 1 if the given year is a leap year and 0 otherwise.
Set or check a wall-clock timer.
Suspend the execution of the program.
Suspend the execution of the program for the given number of seconds.
Suspend the execution of the program for the given number of
microseconds.
Returns the specified local time as a day number, with Jan 1, 0000
being day 1.
Format the given date/time according to the format `f' and return the
result in STR.
Convert a serial date number (see `datenum') or date string (see
`datestr') into a date vector.
Add Q amount of time (with units F) to the datenum, D.
If called with no arguments, return the current monthly calendar in a
6x7 matrix.
Return the day of week as a number in N and a string in S, for example
`[1, "Sun"]', `[2, "Mon"]', .
Return the last day of the month M for the year Y.
Change the name of file OLD to NEW.
Create a new link (also known as a hard link) to an existing file.
Create a symbolic link NEW which contains the string OLD.
Read the value of the symbolic link SYMLINK.
Delete the file named FILE.
Return names of the files in the directory DIR as a cell array of
strings.
Create a directory named DIR in the directory PARENT.
Remove the directory named DIR.
Query or set the internal variable that controls whether Octave will
ask for confirmation before recursively removing a directory tree.
Create a FIFO special file named NAME with file mode MODE
Set the permission mask for file creation.
Return a structure S containing the following information about FILE.
See stat.
Return information about FILE.
Return true if F is a directory.
Given an array of strings (as a char array or a cell array) in PATTERN,
return a cell array of file names that match any of them, or an empty
cell array if no patterns match.
Return 1 or zero for each element of STRING that matches any of the
elements of the string array PATTERN, using the rules of filename
pattern matching.
Return the absolute name of FILE if it can be found in PATH.
Performs tilde expansion on STRING.
Return the canonical name of file NAME.
Move the file F1 to the new name F2.
Copy the file F1 to the new name F2.
Return the directory, name, extension, and version components of
FILENAME.
Return the system-dependent character used to separate directory names.
Returns or sets the character used to separate filename from the the
subfunction names contained within the file.
Return a complete filename constructed from the given components.
Return the name of the system's directory for temporary files.
This function is an alias for `tmpnam'.
Return the default name of the directory for temporary files on this
system.
Unpack the bzip2 archive BZFILE to the directory DIR.
Compress the list of files and/or directories specified in FILES.
Unpack the gzip archive GZFILE to the directory DIR.
Pack FILES FILES into the TAR archive TARFILE.
Unpack the TAR archive TARFILE to the directory DIR.
Compress the list of files and/or directories specified in FILES into
the archive ZIPFILES in the same directory.
Unpack the ZIP archive ZIPFILE to the directory DIR.
This function is provided for compatibility with MATLAB, but it doesn't
actually do anything.
Unpack the archive FILE based on its extension to the directory DIR.
Download a remote file specified by its URL and return its content in
string S.
Download a remote file specified by its URL and save it as LOCALFILE.
Execute a shell command specified by STRING.
Execute a system command if running under a Unix-like operating system,
otherwise do nothing.
Execute a system command if running under a Windows-like operating
system, otherwise do nothing.
Invoke perl script SCRIPTFILE with possibly a list of command line
arguments.
Start a process and create a pipe.
Close a file identifier that was opened by `popen'.
Start a subprocess with two-way communication.
Query or set the internal variable that specifies a colon separated
list of directories to search when executing external programs.
Create a copy of the current process.
Replace current process with a new process.
Create a pipe and return the reading and writing ends of the pipe into
READ_FD and WRITE_FD respectively.
Duplicate a file descriptor.
Wait for process PID to terminate.
Change the properties of the open file FID.
Send signal SIG to process PID.
Return a structure containing Unix signal names and their defined
values.
Return the process group id of the current process.
Return the process id of the current process.
Return the process id of the parent process.
Return the effective user id of the current process.
Return the real user id of the current process.
Return the effective group id of the current process.
Return the real group id of the current process.
Return the value of the environment variable VAR.
Set the value of the environment variable VAR to VALUE.
Change the current working directory to DIR.
List directory contents.
Set or return the shell command used by Octave's `ls' command.
Display file listing for directory DIRECTORY.
Return the current working directory.
Return a structure containing an entry from the password database,
opening it if necessary.
Return a structure containing the first entry from the password database
with the user ID UID.
Return a structure containing the first entry from the password database
with the user name NAME.
Return the internal pointer to the beginning of the password database.
Close the password database.
Return an entry from the group database, opening it if necessary.
Return the first entry from the group database with the group ID GID.
Return the first entry from the group database with the group name
NAME.
Return the internal pointer to the beginning of the group database.
Close the group database.
Print or return a string of the form CPU-VENDOR-OS that identifies the
kind of computer Octave is running on.
Return system information in the structure.
Return 1 if Octave is running on a Windows system and 0 otherwise.
Return 1 if Octave is running on a Unix-like system and 0 otherwise.
Return 1 if your computer claims to conform to the IEEE standard for
floating point calculations.
Return the name of the top-level Octave installation directory.
Return the version number of Octave, as a string.
Return Octave's version number as a string.
Display a header containing the current Octave version number, license
string and operating system, followed by the installed package names,
versions, and installation directories.
Return a structure containing configuration and installation
information for Octave.
Return a structure containing a number of statistics about the current
Octave process.
Calculates the MD5 sum of the file FILE.