Network Print Device help ..
Bill Campbell
linux-sxs at celestial.com
Thu Nov 8 12:51:47 PST 2007
On Thu, Nov 08, 2007, Ben Duncan wrote:
>Ok, here is one that is kinda on subject / kinda off ...
>
>Is it possible to open and have EXCLUSIVE access to a Network print
>devices (Jet Direct / DLINK / NETGEAR etc.. print server) ?
>
>I am re-writing some VERY old COBOL programs (Running on LINUX)
>that harken back to the Days of Multi Serial Ports and
>parallel ports. ALMOST no Server uses these any more and am going
>to re-write the SPOOLER / Printing Mechanism, of which some of the
>code open these ports in "EXCLUSIVE" mode.
I've had to deal with this type of going back to Tandy's version
of RealWorld software on the Model 16/6000 Xenix systems where
the COBOL programs did some truly bizarre things (e.g. opening
and closing the print file for each line written :-).
My solution was to create a FIFO/Named Pipe in the /dev
directory which the application could use, then have a program
reading from that device to send the print job where I wanted. I
still have one customer using this on an SCO OSR5 system running
RealWorld to handle check printing on a network printer.
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
Anyone who cannot cope with mathematics is not fully human. At best he
is a tolerable subhuman who has learned to wear shoes, bathe and not
make messes in the house.
-- Lazarus Long, "Time Enough for Love"
More information about the Linux-users
mailing list