[NTLUG:Discuss] bash question: executing a list of commands
Chris Cox
cjcox at acm.org
Sun Feb 22 23:52:02 CST 2004
Lance Simmons wrote:
...
> What am I missing? How do I take an arbitrary list of commands and
> execute them seriatim?
>
> (As to why I don't just put the commands in a script and execute them
> directly, the answer is that I want to build the list of commands as
> output from another command. In other words, I want the equivalent of
> the find command's -exec option.)
>
Hmmm.. you need to provide an exact example.
If these command are just flying through stdout... then
<routine that produces commands> | sh
will work.
Can you give use a better hint as to exactly what
you are trying to do??
More information about the Discuss
mailing list