[Gambas-user] EXEC vs. SHELL
Mike Keehan
mike at ...331...
Tue Jun 16 21:44:19 CEST 2009
Hi Rolf,
EXEC will run a single executable program.
SHELL can run a shell script, including pipes and redirection between
two or more executables.
You could think of EXEC as the fundamental way to run another program,
while SHELL is shorthand for EXEC /bin/bash <parameters...>.
Mike.
Rolf-Werner Eilert wrote:
> Could someone explain me why there are two different ways of executing
> shell commands and how they differ in practice? I mean, when do I want
> EXEC and when will I want SHELL? What's the idea behind them?
>
> Thanks for all hints :-)
>
> Rolf
>
>
>
More information about the User
mailing list