writing to lpr printer

Bob van der Poel bvdpoel at uniserve.com
Tue Aug 8 22:15:58 EDT 2000


In tcl I can do things like:

	open("|lpr", 'w') 

and tcl will open a pipe to lpr. The open in python doesn't behave this
way...and I was very spoiled with the tcl varient. Is there an easy way
to emulate this, or do I have to parse the filename looking for a
leading '|', etc.?


-- 
   __
  /  )      /         Bob van der Poel
 /--<  ____/__        bvdpoel at uniserve.com
/___/_(_) /_)         http://users.uniserve.com/~bvdpoel




More information about the Python-list mailing list