==========Sajit Sasi, 22/05/95==========
I know this is an easy question to most of you out there, but beats the hell
outta me :-)
All computers at my office are on a LAN and on this LAN is a Linux box that is
connected to the
Internet. All users use winsock applications to read e-mail, news, etc. I'm
probably the only
one who logs in to his account. The problem is this:
We have an HP connected on the LAN, it has it's own ethernet card and is
accessible through any
of the applications we have on our Novell server. Since I use my Linux account
very often, I
was wondering if there was a way I could print out to the HP using 'lpr'
instead of having to
download it to my hard drive and print it through Wordperfect.
I tried messing around with the printcap file but to no avail.
Any help will be appreciated.
I had a similar situation with a networked HP printer. The solution I have is
not very elegant but worked for me.
The networked printer is accessed through a LAN Manager server. I got Samba
which gives LAN Manager support for UNIX type boxes.
This includes a smbclient program which allows you to connect to LAN Manager
My printcap entry calls an input filter script which just copies the standard
input of the filter to a file. The script then executes the
smbclient program and pipes in some commands which cause the file to be sent
to the printer server. The printcap can be altered further to
pre-process the output with perhaps ghostscript.
If there's a more elegant solution to this I'd like to know.
My printcap looks as follows;
The input filter script for text printing is as follows;
cat > print.out
/usr/local/samba/bin/smbclient '\\ddvictor.serve\netpr8' -P -N < txtprint
And the commands piped into the smclient program are;