Running other programs

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Dec 9, 2024

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()