Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 27. ſeptember 2008, 18:24 pm

Tittel: Sending print jobs from Unix/Linux to a HP JetDirect print server
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
How to let Unix/Linux processes send print jobs to a networked HP printer? Setting up printcap and spooling is near impossible without running X on the server.
Tittel: [Solved] Sending print jobs from Unix/Linux to a HP JetDirect print server
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
Newer JetDirect adapters supports FTP printing, simply upload the file you want to print.

Alternatively, send the print jobs directly to the printer via the LPR/BSD protocol on port TCP/515. This ancient protocol is supported even by the oldest JetDirect cards and can be used in several different ways.

1. Use LPRng (by far the simplest approach)
"cat printme.txt | lpr -h @192.168.1.2"

2. If you are using Perl, download and install Net::Printer from www.CPAN.org

3. Write your own TCP client that speaks LPR/BSD (The protocol is very very simple)

More information can be found in this excellent tutorial on printing and network print spoolers:
http://www.lprng.org/LISA98.ppt