Python as a scripting language. Alternative to bash script?

eric dexter irc.dexter at gmail.com
Tue Jun 29 05:29:14 EDT 2010


On Jun 28, 5:48 am, Dave Pawson <dave.paw... at gmail.com> wrote:
> I've a fairly long bash script and I'm wondering
> how easy it would be to port to Python.
>
> Main queries are:
> Ease of calling out to bash to use something like imageMagick or Java?
> Ease of grabbing return parameters? E.g. convert can return both
> height and width of an image. Can this be returned to the Python program?
> Can Python access the exit status of a program?
>
> I'd prefer the advantages of using Python, just wondering if I got
> so far with the port then found it wouldn't do something?
>
> Has anyone made this comparison please?
>
> TIA
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.http://www.dpawson.co.uk

You do have a couple of couple of python scriting programs that are
like bash.  I don't know if they are worth using though (you would
have to look them up I don't recall the names right now)



More information about the Python-list mailing list