- To be done
- - Complete. Most of this is easily emulated.
- pause(+Seconds)
- Make this thread sleep for some Seconds.
- time(-Time)
- Time is unified with the number of seconds elapsed since
January, 1, 1970 (UTC).
- current_host(-Host) is det
- Hostname is unified with the fully qualified name of the host.
- popen(+Command, +Mode, +Stream) is det
- Open a pipe to process Command in a new shell with a given Mode
and return a communication Stream (as in UNIX
popen(3)
). If Mode
is read the output from the process is sent to Stream. If Mode
is write, Stream is sent as input to the process. Stream may be
read from or written into using the ordinary stream I/O
predicates. Stream must be closed explicitly using close/1,
i.e., it is not closed automatically when the process dies. Note
that popen/2 is defined in ***x as using /bin/sh, which usually
does not exist in Windows systems. In this case, a sh shell
which comes with Windows is used.
- mktemp_in_tmp(+Template:atom, +FileName:atom) is det
- Same as tmp_file/2.
Re-exported predicates
The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
- shell
- Execute an interactive shell. The following options are tried to
find a suitable shell command:
- The Prolog flag
shell
- The environment variable
$SHELL
- The Prolog flag
posix_shell
- The environment variable
%comspec%
(Windows only)
- Errors
- -
existence_error(config, shell)
if no suitable shell can be
found.
Undocumented predicates
The following predicates are exported, but not or incorrectly documented.
- working_directory(Arg1, Arg2)
- shell(Arg1)
- shell(Arg1, Arg2)
- delete_file(Arg1)
- delete_directory(Arg1)
- rename_file(Arg1, Arg2)