Home
        <a name=

exec

  Execute a command
SYNTAX
      exec [-cl] [-a name] [command [arguments]]

OPTIONS
      -l   Place a dash at the beginning of the zeroth arg passed to command.
           (This is what the login program does.)
      -c   Causes command to be executed with an empty environment.
      -a    The shell passes name as the zeroth argument to command.

If command is supplied, it replaces the shell without creating a new process. If no command is specified, redirections may be used to affect the current shell environment.

If there are no redirection errors, the return status is zero; otherwise the return status is non-zero.

exec is a BOURNE shell command and a POSIX `special' builtin

Related commands:

exit - Exit the shell
builtin - Run a shell builtin
crontab - Schedule a command to run at a later time
chroot - Run a command with a different root directory
if - Conditionally perform a command
nohup - Run a command immune to hangups
.source - Run commands from a file
su - Run a command with substitute user and group id
type - Describe a command
watch - Execute/display a program periodically