Sponsored Content
Operating Systems Solaris Printer printing control codes Post 303019664 by kuliksco on Tuesday 3rd of July 2018 02:35:45 PM
Old 07-03-2018
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:

Code:
lpadmin -p L4102A -v /dev/null -m netstandard -n /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_5MP-Postscript.ppd.gz -o protocol=bsd -o dest=10.223.32.83 -o banner=never -I postscript

Anyone have any ideas?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

printing control characters

using c-shell, does anyone know how to send control characters to the printer before the job? I need to set a printer to print in condensed mode HELP (1 Reply)
Discussion started by: mglinsk
1 Replies

2. UNIX for Dummies Questions & Answers

Sending control sequence to printer before job

I am having difficulty sending a control sequence ESC&l5H (print to middle tray) to a HP printer (lp4).It is ignoring the command. I am using the following syntax in an executable file : echo "'/033'&l5H" > /dev/lp4 lp -dlp4 filename a) Is /033 'escape' ? b) What is the correct syntax ? (5 Replies)
Discussion started by: ianc
5 Replies

3. IP Networking

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... (2 Replies)
Discussion started by: jeffbugfree
2 Replies

4. HP-UX

Printer Only Printing First Line

Hi all, I've got this issue which has me stumped. Any help would be greatly appreciated. Printers which i have added through SAM, as remote printers with their IP address, only print the first line. Any text file is sent through to the printer only prints the very first line of the file, and the... (18 Replies)
Discussion started by: nubix
18 Replies

5. UNIX for Dummies Questions & Answers

Printing Landscape to PCL 6 Printer

I've looked around and am able to print landscape to a PCL 5 printer with this command: lp -o landscape -o cpi=20 -o page-right=30 -o page-left=30 -d <printer> <file>. Which gives me a nice 200 columns. But, when I send the same output and the same commands to a PCL 6 printer, it comes... (3 Replies)
Discussion started by: tariqjamal
3 Replies

6. UNIX and Linux Applications

Printing unix error codes

Hi Friends, I need your help in understanding this: :rolleyes: I want to print the error numbers returned by the system calls (not the actual integers but the strings that they match to). The error numbers like EACCESS, ENOMEM, ENOENT etc ... For eg: returnCode = open(somefile,... (2 Replies)
Discussion started by: vijaya2006
2 Replies

7. AIX

Printing to Local Printer.

This is an easy one but have no clue how to start. I am connecting via a PC running XP using putty. I have a printer attached to my PC. I need to print stuff. How can I set up this printer? Thanks !:eek: ---------- Post updated at 18:22 ---------- Previous update was at 16:38 ---------- The... (2 Replies)
Discussion started by: 300zxmuro
2 Replies

8. UNIX for Advanced & Expert Users

CUPS printing and control escape codes

I ported application from SysV to Linux and run into troubles with printing. Application uses lp and HP JetDirect-based printers, it inserts HP control codes in the file and uses plain lp -d dest doc-file command to print it. The Linux (Ubuntu 8) has CUPS system, which I am not familiar... (0 Replies)
Discussion started by: migurus
0 Replies

9. AIX

Problem with printing ps files to printer

We have a post script enabled printer setup. But when we send any .ps file using ps to this printer we are getting this error: Cannot print postscript file because No postscript print queue exists for this printer. Print queue name Xerox Printer name... (0 Replies)
Discussion started by: mansmaan
0 Replies

10. UNIX for Beginners Questions & Answers

Tru64 Printing to something other than a printer

I have been searching for a solution to a printing issue for several months now and have come up with no decently working solution. Please give input. We have an old inventory control program running on TRU64 Unix V5.1B operating system. Around 2003 it was virtualized onto VMware via AVT's... (1 Reply)
Discussion started by: Ken_Snauffer
1 Replies
FOOMATIC-RIP(1) 					      General Commands Manual						   FOOMATIC-RIP(1)

NAME
foomatic-rip - Universal print filter/RIP wrapper SYNOPSIS
General Options: foomatic-rip [-v] [-q] [-d] <filter specific options> Spooler-less printing/CPS (older versions) filter: foomatic-rip [-P <printer> | --ppd <ppdfile> ] [-J <jobtitle> ] [-o <option>=<value> [...]] [<files>] CUPS filter: foomatic-rip <jobid> <user> <jobtitle> <numcopies> <options> [<file>] LPRng filter: foomatic-rip --lprng [-J<jobtitle>][-Z<option>=<value>[,<option>=<value>[, ...]] <ppdfile> foomatic-rip [-J<jobtitle>][-Z<option>=<value>[,<option>=<value>[, ...]] (printcap :pdd=<ppdfile>) foomatic-rip --ppd <ppdfile>[-J<jobtitle>] [-Z<option>=<value>[,<option>=<value>[, ...]] LPD/GNUlpr filter: foomatic-rip [-w <number>] [-l <number>] [-x <number>] [-y <number>] [-i <number>] [-c] [-n <string>] [-h <string>] [-j|-J <jobti- tle>|<options>] <ppdfile> PPR RIP: foomatic-rip [<option>=<value> [...]] PPR interface: foomatic-rip <queue> <destaddress> <options> <jobbreak> <feedback> <codes> <jobname> <routing> <for> <filetype> [<file>] PDQ driver file generation: foomatic-rip [--ppd <ppdfile>] [-o <option>=<value> [...]] --genpdq|--appendpdq|--genrawpdq|--appendrawpdq PDQ filter: foomatic-rip --pdq --ppd <ppdfile>] [-o <option>=<value> [...]] <file> CPS (newer versions) filter: foomatic-rip --cps -P <printer> [-J <jobtitle>] [-o <option>=<value> [...]] [<files>] DESCRIPTION
foomatic-rip is a universal print filter which works with every known free software printer spooler. It has the following features: It translates PostScript (and also other file formats) from standard input to the printer's native language (usually put to standard out- put). The translation is done with an external renderer, usually GhostScript (gs(1)). If no translation is needed (PostScript printer) the ren- derer's command line reduces to cat(1). The way how this translation is done is described in a PPD file. Printer capabilities, how to handle user options, and how to build the renderer command line is always described by PPD files, these PPD files can come from Foomatic or can be the ones supplied by the manufacturers of PostScript printers. The PPD files are the same for all spoolers. foomatic-rip works with every known spooler (CUPS, LPRng, LPD, GNUlpr, PPR, PDQ, CPS, and without spooler). It auto-detects the spooler from which it was called by the command line options and environment variables which were supplied by the spooler. Non-PostScript files are translated to PostScript before they are passed to the renderer. This is usually done by a2ps(1), enscript(1), or mpage(1). foomatic-rip auto-detects which program is installed, but manual configuration is also possible. foomatic-rip does not only apply option settings supplied by the user through the command line of the printing command, but also searches the entire job for embedded option settings (only PostScript jobs). Here not only settings affectimg the whole job are taken into account, but also settings in the page headers, which are only valid for the page where they were found, so applications which produce PostScript code with page-specific printer option settings are fully supported. SPOOLER-LESS PRINTING Options -v verbose mode for debugging. WARNING: This will create a file in /tmp that contains the debugging information. This opens a security loophole and should not be used in production. -q quiet mode - minimal information output -d identical to the 'opts' option, but option information is left in text format. This is useful for running foomatic-rip from the command line to determine what the printer option are. The PPD file will need to be specified using the --ppd option. -P <printer> <printer> is the configured printer which should be used for this job. --ppd <ppdfile> The PPD file <ppdfile> should be applied for processing this job. -J <jobtitle> The <jobtitle> will be printed in the head line of every page of a plain text job. -o <option>=<value> Option settings for this job, do foomatic-rip -P <printer> -o docs <file> (<file> can be an arbitrary existing file, as .bashrc, will not be printed) to print a list of available options for the speci- fied <printer>. <files> The file(s) to be printed. foomatic-rip will print from standard input unless a file to print is specified on the command line. If your printer PPD file is stored as /etc/sfw/direct/<printer>.ppd or ~/.foomatic/direct/<printer>.ppd you can use it by simply specifying "-P <printer>". Put a line *FoomaticRIPPostPipe: "| <command>" into the PPD file, right after *PPD-Adobe: "4.3", where <command> is a command into which you wnat to re-direct the output data. Due to the restictions of PPD files <, >, and " are not allowed in the <command>, replace them as follows: Character Replacement --------------------- < &lt; > &gt; " &quot; ' &apos; & &amp; This way you can print directly to your printer, use *FoomaticRIPPostPipe: "| cat &gt; /dev/lp0" or *FoomaticRIPPostPipe: "| cat &gt; /dev/usb/lp0" for local parallel or USB printers. To make normal users able to print this way add them to the group lp and make sure that the appropriate printer device file /dev/... is group-writable for the lp group. for a TCP/Socket/JetDirect printer with the host name printer listening on port 9100 you need this: *FoomaticRIPPostPipe: "| /usr/bin/nc -w 1 printer 9100" Note the "-w 1" in the "nc" command line, it makes "nc" exiting immediately after the data is tranferred to the printer. *FoomaticRIPPostPipe: "| rlpr -Plp@printserver" directs your jobs to the LPD printer queue lp on the machine named printserver. See also http://www.linuxprinting.org/direct-doc.html PRINTING WITH SPOOLER
See the documentation on the Linux Printing Web site: http://www.linuxprinting.org FILES
/etc/sfw/cups/<printer>.ppd /etc/sfw/lpd/<printer>.ppd /etc/sfw/ppr/<printer>.ppd /etc/sfw/pdq/<printer>.ppd /etc/sfw/direct/<printer>.ppd The PPD files of the currently defined printers EXIT STATUS
foomatic-rip returns 0 unless something unexpected happens. AUTHOR
Till Kamppeter <till.kamppeter@gmx.net> with parts of Manfred Wassmanns's <manolo@NCC-1701.B.Shuttle.de> man pages for the Foomatic 2.0.x filters. BUGS
None so far. Please send bug reports to foomatic-devel@linuxprinting.org. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +---------------------+-------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------------+-------------------------------+ |Availability | SUNWffiltersu SUNWffiltersr | +---------------------+-------------------------------+ |Interface Stability | External | +---------------------+-------------------------------+ NOTES
Source for foomatic-filters is available on http://opensolaris.org. Foomatic Project 2002-11-26 FOOMATIC-RIP(1)
All times are GMT -4. The time now is 11:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy