Re: print from a python script.

2009-04-06 Thread R. David Murray
Chris Rebert wrote: > On Mon, Apr 6, 2009 at 2:24 PM, Ronn Ross wrote: > > I'm trying to print a simple string to a network printer. This is what I > > have so far: > > > > import os > > > > printer_path = "192.168.200.139" > > p = os.popen(printer_path, 'w') > > p.write("this is a printer test")

Re: print from a python script.

2009-04-06 Thread Chris Rebert
On Mon, Apr 6, 2009 at 2:24 PM, Ronn Ross wrote: > I'm trying to print a simple string to a network printer. This is what I > have so far: > > import os > > printer_path = "192.168.200.139" > p = os.popen(printer_path, 'w') > p.write("this is a printer test") > p.close() > > I'm trying to call the

print from a python script.

2009-04-06 Thread Ronn Ross
I'm trying to print a simple string to a network printer. This is what I have so far: import os printer_path = "192.168.200.139" p = os.popen(printer_path, 'w') p.write("this is a printer test") p.close() I'm trying to call the printer from its IP address. When I run the script I get: sh: 192.16