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 (5 + 5) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 08.03.2009
Views: 1788
Item date: 01.07.2009
Views: 1588
Item date: 23.08.2009
Views: 922
Item date: 28.12.2010
Views: 996
Item date: 26.09.2009
Views: 2087
Item date: 21.07.2009
Views: 682
Item date: 18.06.2009
Views: 629
Item date: 14.07.2010
Views: 631
Item date: 03.01.2009
Views: 1728