Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

exec string

exec is NOT undoable, NOT queryable, and NOT editable.

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

pclose, popen, system

MEL examples

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