How to call a Perl script from Python, piping input to it? -


I am hacking some support for domain and DKIM in an open source email marketing program, which uses a python script Does real email through SMTP I decided to go on a quick and dirty route, and just write a Perl script that accepts an email message from STDIN, indicates it, then signs it.

What I would like to do is, pipe the email text from the python to the script, the Perl script, and store the result in another variable, so I can send the signed email. I'm not really a dragon guru, though, and I can not find a good way to do this. I am pretty sure that I can use something like this for ossystem , but it starts wooing me by pipping a variable in the Perl script.

In short: How can I make a pipeline from a Python script, into a Perl script, and store the results in Python?

EDIT: I forgot to include that the system I am working with only python v2.3

will return a tuple with stdin and stdout of subdrouses.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -