said:
>
> >but repeating
> >say stream('\pipe\lpd1','c','open ready') returns NOTREADY:231
>
> I assume the above is a typo, but I can duplicate your results here. Now
What typo? But I did expect my results were real.
> that you made me think about it, it's obvious why it should fail. You
> don't know how to talk to lprportd. There must be a defined interface
> between the printer object LPD port driver and lprportd. Otherwise, how
> would the paramters be passed? Since I'm pretty sure you don't know this
> interface, you are not going to be able to use it.
I don't know how to use the interface, but epm, NS, WordPro etc. must know.
How do I learn how to use it?
> Use lprmon to connect to the print server and write the the redirected lpt
> port. Something like:
>
> lprmon -b -p lp0 -s 192.168.0.x lpt2
>
> should get you connected. Then just write to lpt2 from REXX. I recall
> mumbling something about doing it this way at the meeting.
This works, and I know someone mentioned using lprmon, but I was trying to use
lprportd because I have multiple printers. with lprmon I have to start a
separate instance for each printer, in startup.cmd, I suppose.
OTOH, lprmon seems faster than lprportd
> FWIW, the error messages say nothing about printer errors. They
> reflecting your script's inability to talk correctly to the pipe.
>
> Steven
>
> --
> ---------------------------------------------------------------------
> "Steven Levine" MR2/ICE 2.31a #10183 Warp4/FP15/14.085_W4
> www.scoug.com irc.webbnet.org #scoug (Wed 7pm PST)
> ---------------------------------------------------------------------
glad you're there,
Ben
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
Return to [ 26 |
July |
2002 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.