script files with python (instead of tcsh/bash)?

Aahz aahz at pythoncraft.com
Sat Mar 21 11:57:35 EDT 2009


In article <mailman.2384.1237643720.11746.python-list at python.org>,
Esmail  <ebonak at hotmail.com> wrote:
>Aahz wrote:
>> In article <mailman.2374.1237641982.11746.python-list at python.org>,
>> Esmail  <ebonak at hotmail.com> wrote:
>>> 
>>> I've looked around the web w/o much luck for some examples but come
>>> short. Any comments/suggestions?
>> 
>> Not sure what you're looking for here -- many things you'd run an
>> external program for in scripting can be accomplished with Python library
>> calls, and for the rest, you can use the subprocess module (or os.system
>> if you have no acces to Python 2.4 or higher).
>
>I have access to 2.5 or more recent. I guess I was looking for some
>example scripts in Python and perhaps the equivalent in bash/tsch to
>show some of the equivalences. I am being impatient, I guess I need to
>dig into the language/library documentation a bit more on my own.

If you post a sample script you're trying to convert, you may get some
responses that show how different people would write it in Python.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Programming language design is not a rational science. Most reasoning
about it is at best rationalization of gut feelings, and at worst plain
wrong."  --GvR, python-ideas, 2009-3-1



More information about the Python-list mailing list