Next: , Up: posix process   [Index]


4.6.1 Executing a command through the shell

Function: system command

Interface to the C function system(), (libc)system. Execute a command through the system shell; command must be a string holding the command to execute. If successful return the termination status of the executed process, posix status for details; if an error occurs: an exception is raised.

Example that runs ls:

(import (vicare)
  (prefix (vicare posix) px.))

(system "ls -l")