4.35 Operating System Interaction
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Operating System Interaction
          • shell/1
          • shell/2
          • getenv/2
          • setenv/2
          • unsetenv/1
          • setlocale/3
          • unix/1
          • Windows-specific Operating System Interaction
          • Dealing with time and date
          • Controlling the swipl-win.exe console window
    • Packages
Availability::- use_module(library(quintus)).(can be autoloaded)
Sourceunix(+Command)
This predicate comes from the Quintus compatibility library and provides a partial implementation thereof. It provides access to some operating system features and unlike the name suggests, is not operating system specific. Defined Command's are below.
system(+Command)
Equivalent to calling shell/1. Use for compatibility only.
shell(+Command)
Equivalent to calling shell/1. Use for compatibility only.
shell
Equivalent to calling shell/0. Use for compatibility only.
cd
Equivalent to calling working_directory/2 to the expansion (see expand_file_name/2) of ~. For compatibility only.
cd(+Directory)
Equivalent to calling working_directory/2. Use for compatibility only.
argv(-Argv)
Unify Argv with the list of command line arguments provided to this Prolog run. Please note that Prolog system arguments and application arguments are separated by --. Integer arguments are passed as Prolog integers, float arguments and Prolog floating point numbers and all other arguments as Prolog atoms. New applications should use the Prolog flag argv. See also the Prolog flag argv.