Re: library to do easy shell scripting in Python

2008-04-24 Thread Matt Nordhoff
Wow, this message turned out to be *LONG*. And it also took a long time to write. But I had fun with it, so ok. :-) Michael Torrie wrote: Recently a post that mentioned a recipe that extended subprocess to allow killable processes caused me to do some thinking. Some of my larger bash scripts

Re: library to do easy shell scripting in Python

2008-04-24 Thread alex23
On Apr 24, 12:22 pm, Michael Torrie [EMAIL PROTECTED] wrote: pipe([prog1,args],[prog2,args],...) Any ideas on how I could design this? There's a recipe on Activestate's Python Cookbook that does pretty much this: Allows arbitrary number of commands to be strung together with each one feeding

library to do easy shell scripting in Python

2008-04-23 Thread Michael Torrie
Recently a post that mentioned a recipe that extended subprocess to allow killable processes caused me to do some thinking. Some of my larger bash scripts are starting to become a bit unwieldy (hundreds of lines of code). Yet for many things bash just works out so well because it is so close to