Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NAME

exec - execute an OS command

SYNOPSIS

exec COMMAND [ARGUMENT...]

DESCRIPTION

Execute an OS command and wait for the command to finish. exec displays output from the commands output and error streams.
If exec is executed in a pipeline, it will redirect its standard input to the standard input of the OS command being executed.

EXAMPLES

Print Information about the networking subsystem:

Code Block
exec netstat

Print all of processes owned by user 'username':

Code Block
exec ps aux | exec grep username

or

Code Block
exec ps aux | grep username

NOTES

It is not possible to run exec commands that use the curses (programming library).
For example, the command 'exec vi filename' is not supported and you will not be able to interface with the stream.
Hit Ctrl+C to break out of the command and to get the FluidShell prompt.

SEE ALSO

run