exec: Execute a command

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
To execute a shell script from the command line, prefix the script?s name with ./
./myscript
You may be tempted to fix this by adding ?.? to your $PATH but this is widely considered to be a bad idea (for security reasons).
If you want to execute something in the current directory, just type
the "./" in front of the command name.
"In art the hand can never execute anything higher than the heart can inspire" - Ralph Waldo Emerson
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (9 + 8) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 10.04.2009
Views: 1124
Item date: 07.03.2009
Views: 1321
Item date: 12.12.2009
Views: 261
Item date: 27.09.2009
Views: 1101
Item date: 25.07.2010
Views: 637
Item date: 26.09.2009
Views: 760
Item date: 02.12.2009
Views: 155
Item date: 24.08.2009
Views: 481
Item date: 26.09.2009
Views: 1696
Item date: 23.08.2009
Views: 2027