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

Ned Deily nad at acm.org
Sat Mar 21 15:05:25 EDT 2009


In article <gq2rjc$ji$1 at ger.gmane.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 am wondering if anyone is using python to write script files?
> > 
> > These days, I always convert any even slightly complicated script to
> > Python.
> well .. that sounds encouraging ...> 
> >> 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.

Perhaps the recipe for Pyline might give you some ideas on how to write 
python scripts that play well with other scripts.

<http://code.activestate.com/recipes/437932/>

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list