Running other programs

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Nov 23, 2020

From http://www.aaronsw.com/weblog/001189#comments

import os

def markdown(text):
i, o = os.popen2("perl Markdown.pl") # let the Perl code take it
i.write(text); i.close()
return o.read()