print from a python script.

Ronn Ross ronn.ross at
Mon Apr 6 23:24:08 CEST 2009

I'm trying to print a simple string to a network printer. This is what I
have so far:

import os

printer_path = ""
p = os.popen(printer_path, 'w')
p.write("this is a printer test")

I'm trying to call the printer from its IP address. When I run the script I
sh: not found

thanks for you help in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list