Re: [Haskell-cafe] How to generalize executing a series of commands, based on a list?

2010-11-18 Thread Scott Turner
On 2010-11-17 21:03, Peter Schmitz wrote: I am wondering how to generalize this to do likewise for a series of commands, where the varying args (filenames, in this case) are in a list ('inOutLeafs'). The 'sequence' function is handy for combining a series of actions, such as [system cmd1,

Re: [Haskell-cafe] How to generalize executing a series of commands, based on a list?

2010-11-18 Thread Peter Schmitz
Thank you very much for the help. -- Peter On Thu, Nov 18, 2010 at 4:48 AM, Scott Turner 1hask...@pkturner.org wrote: On 2010-11-17 21:03, Peter Schmitz wrote: I am wondering how to generalize this to do likewise for a series of commands, where the varying args (filenames, in this case)

[Haskell-cafe] How to generalize executing a series of commands, based on a list?

2010-11-17 Thread Peter Schmitz
I am able to use System.Cmd (system) to invoke a shell command and interpret the results. Please see the code below that works okay for one such command. (I invoke a program, passing two args.) I am wondering how to generalize this to do likewise for a series of commands, where the varying args