Go to: Return value. Related commands. Examples.

Synopsis

exec <string>

The string argument is a command which gets executed as a background process from the shell. Note that the exec command is system dependent, and will give different results on Windows than on a UNIX system. On UNIX systems (eg Linux and Mac OS X) the process id of the background process is returned as an int. On Windows, 0 is returned if the command is successful. On Windows we use spawnvp and on UNIX systems we use execv.

Return value

int

Related commands

popen, pclose, system

Examples


  exec ("render");
  // Result: 913 //