Re: Guide to using python for bash-style scripting

2006-05-23 Thread James Stroud
4zumanga wrote: > I have a bunch of really horrible hacked-up bash scripts which I would > really like to convert to python, so I can extend and neaten them. > However, I'm having some trouble mapping some constructs easily, and > was wondering if anyone know of a guide to mapping simple uses of >

Re: Guide to using python for bash-style scripting

2006-05-23 Thread Szabolcs Nagy
python subprocess module docs: http://docs.python.org/dev/lib/node517.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Guide to using python for bash-style scripting

2006-05-23 Thread Bill Pursell
4zumanga wrote: > Yes, there is a stupid mistake in that script, last line should be: > > diff new_out1 new_out2 > > However, this is hopefully not important, what is important is the > general kind of (very simple) things I'm trying to do. I have been hoping for a good solution to this. An easy

Re: Guide to using python for bash-style scripting

2006-05-23 Thread 4zumanga
Yes, there is a stupid mistake in that script, last line should be: diff new_out1 new_out2 However, this is hopefully not important, what is important is the general kind of (very simple) things I'm trying to do. -- http://mail.python.org/mailman/listinfo/python-list

Guide to using python for bash-style scripting

2006-05-23 Thread 4zumanga
I have a bunch of really horrible hacked-up bash scripts which I would really like to convert to python, so I can extend and neaten them. However, I'm having some trouble mapping some constructs easily, and was wondering if anyone know of a guide to mapping simple uses of command line programs to p