process
exec
starts a new program replacing the executing Maple
Calling Sequence
Parameters
Description
exec(cmd, arg ...)
cmd
-
name of the executable file to execute
arg
zero or more command-line arguments to the specified command
Important: The process package has been deprecated. Use the superseding package Threads instead.
The Maple process is terminated, and a new process is started in its place as specified by cmd and arg.
exec does not return, unless it fails, in which case it generates an error.
exec is typically called in one branch of a fork.
The specified executable file is searched for in the same set of directories as commands entered on the system command line (as set by the PATH environment variable in UNIX).
The exec function is only available on platforms that support true concurrent processing (for example, UNIX).
See Also
process(deprecated)[fork]
process(deprecated)[kill]
process(deprecated)[launch]
process(deprecated)[pipe]
process(deprecated)[wait]
Threads
Download Help Document