Did you know ... Search Documentation:
Pack ciao -- prolog/dialect/ciao/system.pl
PublicShow source
To be done
- Complete. Most of this is easily emulated.
Make this thread sleep for some Seconds.
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.

Execute an interactive shell. The following options are tried to find a suitable shell command:
  1. The Prolog flag shell
  2. The environment variable $SHELL
  3. The Prolog flag posix_shell
  4. The environment variable %comspec% (Windows only)
- 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, Arg2)
 rename_file(Arg1, Arg2)