exec (program, arguments?...)
The name of a program to execute, as a string.
The arguments to the program, each as a string.
This function is a binding for the C function execvp, which causes the interpreter to terminate immediately, and to run the named program in its place. The "p" in the execvp function indicates that a search is made for the named executable in the current path, as defined by the PATH shell variable. Unlike the C execvp function, the first argument in Gamma's exec function does not repeat the program name—it is automatically inserted for you.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.