Visit Our UNIX and Linux User Community

Special Forums IP Networking How do you send printer codes to an IP printer Post 74390 by jeffbugfree on Thursday 9th of June 2005 11:16:39 AM
Old 06-09-2005
How do you send printer codes to an IP printer

We were printing to a serial laser printer with all the HP codes to generate a form (i.e. lines, boxes, etc.) Thus the file is filled w/ control codes. We are switching to an IP printer and we can no longer print directly to the device (i.e. cp text /dev/tty11). It looks like we have to use the lp spooler now. When we do this the codes are ignored as the line is too long. Is there away to send raw text to an IP printer that is using the Jet Direct card to setup the queues? I saw an stty option on the lp command, can that be used to put it in raw mode?

Thanx for your help
Test Your Knowledge in Computers #468
Difficulty: Medium
Both Ethernet and IPv4 use an all-zeros broadcast address to indicate a broadcast packet.
True or False?

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

HP Printer

Dear Experts How can I configure my workstation in order to be able to sent print? I am working on a sun workstation with Solaris 8 as its OS. My printer is an HP8000 series and is connected somewhere to our network. I know the IP address of the printer and I have put it in /etc/hosts file. So I... (8 Replies)
Discussion started by: Reza Nazarian
8 Replies

2. Linux

know I do for to printer in printer deskjet 80colun

I want to print some thing in HP Deskjet 692.? (1 Reply)
Discussion started by: edvaldo
1 Replies

3. Solaris

how can i send to printer ?

Hello how can i send simple txt file to printer from sun ? tnx (1 Reply)
Discussion started by: umen
1 Replies

4. Solaris

Configuring Printer with Printer Manager

Hi All, I am trying to configure printer in solaris 10 with the help of print manager. There is no printer attached to my system, ia m doing it for test purpose. However I am unable to do so coz its pops up window - Heading as error with option as dismiss and cancel. Kindly help as I am... (3 Replies)
Discussion started by: kumarmani
3 Replies

5. AIX

Check printer queue on Windows printer server

Hello Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running. I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to... (0 Replies)
Discussion started by: NielsV
0 Replies

6. Linux

Find printer location and printer type

Hi, Is it possible to find the printer location and printer type (whether it is local or network) using command in Linux ? Thanks in advance. (1 Reply)
Discussion started by: forumguest
1 Replies

7. Solaris

Printer printing control codes

Solaris 10: Having some trouble with a new printer printing control codes. This is an HP MFP M632. Tried a few ppd files and without a ppd file using commands similar to the follow: lpadmin -p L4102A -v /dev/null -m netstandard -n... (1 Reply)
Discussion started by: kuliksco
1 Replies
hp-setup(1)							   User Manuals 						       hp-setup(1)

hp-setup - Printer/Fax Setup Utility DESCRIPTION
Installs HPLIP printers and faxes in the CUPS spooler. Tries to automatically determine the correct PPD file to use. Allows the printing of a testpage. Performs basic fax parameter setup. SYNOPSIS
Run in graphical UI mode: -u or --gui (Default) Run in interactive mode: -i or --interactive OPTIONS
Automatic mode: -a or --auto (-i mode only) To specify the port on a multi-port JetDirect: --port=<port> (Valid values are 1*, 2, and 3. *default) No testpage in automatic mode: -x (-i mode only) To specify a CUPS printer queue name: -p<printer> or --printer=<printer> (-i mode only) To specify a CUPS fax queue name: -f<fax> or --fax=<fax> (-i mode only) Type of queue(s) to install: -t<typelist> or --type=<typelist>. <typelist>: print*, fax* (*default) (-i mode only) To specify the device URI to install: -d<device> or --device=<device> (--qt4 mode only) Remove printers or faxes instead of setting-up: -r or --rm or --remove (-u only) Set the language: -q <lang> or --lang=<lang>. Use -q? or --lang=? to see a list of available language codes. Set the logging level: -l<level> or --logging=<level> <level>: none, info*, error, warn, debug (*default) Run in debug mode: -g (same as option: -ldebug) This help information: -h or --help SERIAL NO.|USB ID|IP|DEVNODE USB bus:device (usb only): "xxx:yyy" where 'xxx' is the USB bus and 'yyy' is the USB device. (Note: The ':' and all leading zeros must be present.) Use the 'lsusb' command to obtain this information. IPs (network only): IPv4 address "a.b.c.d" or "hostname" DEVNODE (parallel only): "/dev/parportX", X=0,1,2,... SERIAL NO. (usb and parallel only): "serial no." EXAMPLES
Setup using GUI mode: $ hp-setup Setup using GUI mode, specifying usb: $ hp-setup -b usb Setup using GUI mode, specifying an IP: $ hp-setup One USB printer attached, automatic: $ hp-setup -i -a USB, IDs specified: $ hp-setup -i 001:002 Network: $ hp-setup -i Network, Jetdirect port 2: $ hp-setup -i --port=2 Parallel: $ hp-setup -i /dev/parport0 USB or parallel, using serial number: $ hp-setup -i US12345678A USB, automatic: $ hp-setup -i --auto 001:002 Parallel, automatic, no testpage: $ hp-setup -i -a -x /dev/parport0 Parallel, choose device: $ hp-setup -i -b par NOTES
1. If no serial number, USB ID, IP, or device node is specified, the USB and parallel busses will be probed for devices. 2. Using 'lsusb' to obtain USB IDs: (example) $ lsusb Bus 003 Device 011: ID 03f0:c202 Hewlett-Packard $ hp-setup --auto 003:011 (Note: You may have to run 'lsusb' from /sbin or another location. Use '$ locate lsusb' to determine this.) 3. Parameters -a, -f, -p, or -t are not valid in GUI (-u) mode. SEE ALSO
hp-makeuri hp-probe AUTHOR
HPLIP (Hewlett-Packard Linux Imaging and Printing) is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. REPORTING BUGS
The HPLIP site is available to get help, report bugs, make suggestions, discuss the HPLIP project or otherwise contact the HPLIP Team. COPYRIGHT
Copyright (c) 2001-14 Hewlett-Packard Development Company, L.P. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details. Linux 9.0 hp-setup(1)

Featured Tech Videos

All times are GMT -4. The time now is 05:54 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy