August 2000
Intermediate to advanced
816 pages
29h 45m
English
exec
exec [options] [command]
Execute command in place of the current process (instead of creating a new process). exec also is useful for opening, closing, or copying file descriptors.
Tell command that it was invoked as name.
Remove all environment variables from the process when the new command runs.
Treat the new process as if the user were logging in.
$trap 'exec 2>&-' 0Close standard error when shell script exits (signal 0) $exec /bin/tcshReplace current shell with extended C shell $exec < infileReassign standard input to infile
Read now
Unlock full access