if you are using windows 2000, you can use the 'lpr' command. on the unix side, a named pipe would be nice for this, but i don't think it will work in windows. try making a pipe for printing then redirecting STDOUT, again, not sure if these things work in win32: open PRINTER, "| lpr -S printserver"; # print PRINTER "blah, blah"; close PRINTER; -- # here is the part that i am not sure about in windows open(STDOUT, ">&PRINTER") or die "Cannot redirect STDOUT: $!"; --
other ideas: if you are using Active State: perldoc Win32::Pipe > -----Original Message----- > From: chris [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 7:01 PM > To: [EMAIL PROTECTED] > Subject: How to send stdout to printer in Windows? > > > With Windows, I am able to redirect stdout to a printer port from the > command line. Is there a way to do this with perl? > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]