[TriZPUG] resources for converting shell scripts to python?
josh_johnson at unc.edu
Wed Aug 4 18:08:43 CEST 2010
The subprocess module will help a lot.
Beyond that I think you may want to try to find some shell scripts and
command line utils written in python.
Last year I wrote an article on my blog about writing LSB-compliant start up
scripts (e.g. /etc/rc.d/blah restart style, or service blah restart via
chkconfig in redhat variants), that may be helpful but might be somewhat out
of scope for what you're doing.
Let us know if you find anything else useful...
From: trizpug-bounces+josh_johnson=unc.edu at python.org
[mailto:trizpug-bounces+josh_johnson=unc.edu at python.org] On Behalf Of Tom
Sent: Wednesday, August 04, 2010 9:51 AM
To: trizpug at python.org
Subject: [TriZPUG] resources for converting shell scripts to python?
Apologies if I've previously asked this, but:
I'd appreciate pointers to tutorials, howtos, etc that folks have
found useful for migrating shell scripts (esp bash, esp those that
heavily use coreutils, awk, grep, sed) to python.
TIA, Tom Roche <Tom_Roche at pobox.com>
TriZPUG mailing list
TriZPUG at python.org
http://trizpug.org is the Triangle Zope and Python Users Group
More information about the TriZPUG