On Win32 systems, shell/[1,2]
executes the command using the CreateProcess() API and waits for the
command to terminate. If the command ends with a &
sign, the command is handed to the WinExec() API, which does not wait
for the new task to terminate. See also win_exec/2.
shell(Command, 0)
'.
/bin/sh
, the
environment variable SHELL
overrides this default. Not
available for Win32 platforms.
iconic
or normal
and dictates the initial status of the window. The iconic
option is notably handy to start (DDE) servers.
chdir(~)
. Use for compatibility only.
--
. Integer
arguments are passed as Prolog integers, float arguments and Prolog
floating point numbers and all other arguments as Prolog atoms.
A stand-alone program could use the following skeleton to handle command-line arguments. See also section 2.10.2.3.
main :- unix(argv(Argv)), append(_PrologArgs, [--|AppArgs], Argv), !, main(AppArgs). |