<div><span class="gmail_quote">On 6/13/07, <b class="gmail_sendername">Andrej</b> <<a href="mailto:andrej@paradise.net.nz">andrej@paradise.net.nz</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
For instance if the machine were to run many of the tasks<br>that were to be scripted. Each invocation of the python<br>interpreter will cost you more RAM than awk or sed will.</blockquote><div><br class="webkit-block-placeholder">
</div><div>I frequently code my "shell scripts" in Python nowadays. That way there is only one invocation of Python so I only pay the startup cost once, and the resulting script can be a bit more transparent. Python's subprocess module lets me deal with invoking subtasks and dealing with their I/O and inevitable error conditions in readable ways.
</div><div><br class="webkit-block-placeholder"></div><div><br> </div><div>-- </div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">
Jim Tittsler <a href="http://www.OnNZ.net/">http://www.OnNZ.net/</a> GPG: 0x01159DB6</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Python Starship
<a href="http://Starship.Python.net/crew/jwt/">http://Starship.Python.net/crew/jwt/</a></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Mailman IRC irc://irc.freenode.net/#mailman
</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p></span><br class="webkit-block-placeholder"></div></div>