Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Printing 5 raw characters to a printer Post 302085505 by Friğrik on Thursday 17th of August 2006 03:57:05 PM
Old 08-17-2006
Solved.

The problem was not anything about the printer setup. I wasn't using the -oraw parameter (which makes it a raw command). This is the solution then:

Open drawer: echo -e "\033\160\060\067\171" | lpr -P Skuffa -oraw
Receipt cutter: echo -e "\033\155" | lpr -P Skuffa -oraw

Thank you for your help.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Raw text to IP Printer

We were printing to a serial laser printer with all the HP codes to generate a form (i.e. lines, boxes, etc.) We are switching to an IP printer and we can no longer print 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... (0 Replies)
Discussion started by: jeffbugfree
0 Replies

2. SCO

Printing from SCO 5.05... to XP Shared Printer

I am having trouble getting our accounting program (on SCO 5.05) to print to a shared windows printer. We used to use a program that took care of this PCI print server or somehting like that. but when XP service pack 2 got installed somethign happened with the permissions and the files would... (2 Replies)
Discussion started by: LarryG
2 Replies

3. HP-UX

Printing Problem With Hp4250n Printer?

Hi all;:) I have the following strange problem with my network printer Hp Laser jet 4250n working with Hp9000 rp3410 Servers , it prints well under Microsoft windows operation system ,,, But under Hp Unix 11.1 applications such as text editor the printing font is very small (size 4) ; one... (2 Replies)
Discussion started by: Michel Boss
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. 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

7. 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

8. Solaris

No printing from PRINTRONIX P5215 printer with Solaris 10

No issue with HP Laserjet printer. Using same method (as below) to configure the Printronix printer in Solaris 9, no issue. Solaris with the Printronix Interface file (pnet.if) Configure Unix: 1)First download the pnet.if. 2) Log in to Unix server as root (or another username that... (1 Reply)
Discussion started by: KhawHL
1 Replies

9. 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

10. 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
gtklp(1)							     Printing								  gtklp(1)

NAME
gtklp - print files via CUPS SYNOPSIS
gtklp [-P|-d printer] [-c configdir] [-S|-h server] [-p port] [-l] [-D] [-V] [-b] [-i] [-H] [-C] [-U user] [-#|-n n] [-E] [-q priority] [-t|-J jobname] [-o option=value ... ][file(s)] lp [-d printer] [-S|-h server] [-p port] [-D] [-V] [-b] [-U user] [-#|-n n] [-E] [-q priority] [-t|-J jobname] [-P page-list [-H handling] [-X] [-o option=value ... ][file(s)] lpr [-P|-d printer] [-S|-h server] [-p port] [-D] [-V] [-b] [-U user] [-#|-n n] [-E] [-q priority] [-t|-J|-C|-T jobname] [-X] [-o option=value ... ][file(s)] DESCRIPTION
GtkLP is an graphical frontend for CUPS, the Common UNIX Printing System. It is used to have an easy (and graphical) access to all of the many options of cups-managed printers. OPTIONS
The following options are recognized by gtklp: -P printer Use printer as default destination. -d printer This option is equivalent to "-P". -c configdir Use configdir to set an alternative path to the configfiles for GtkLP. -S server The name of the CUPS-Server. -h server The same as -S. -p port The port of CUPS-Server, 631 per default. -l Only list the chosen options as a list of commandline-parameters for lpr. Nice for scripting purposes... -D Debug. -V Displays the version of GtkLP. -b Use builtin defaults instead of saved options -i Ignore data on stdin. Sometimes useful, e.g. for printing from some versions of the Acrobat Reader. -U user The name of the cups-User to use. -# n Make n copies per default. -n n The same as -#. -H Help -C Force console-mode -o option=value Specify extra options, same syntax as lpr -E Forces encryption when connecting to the server. -q priority Specify the priority of the print job, from 1 (lowest) to 100 (highest) -t jobname Specify the jobname -J jobname The same as -t. If called as lp, the following options differ from GtkLP`s options: -X Force X-Mode, even if GTKLP_FORCEX is not set to 1 -P page-list Specifies which pages to print in the document. The list can contain a list of numbers and ranges (#-#) separated by commas (e.g. 1,3-5,16). -H handling Specifies when the job should be printed. A value of immediate will print the file immediately, a value of hold will hold the job indefinitely, and a time value (HH:MM) will hold the job until the specified time. (does this option work ?) If called as lpr, the following options differ from GtkLP`s options: -X Force X-Mode, even if GTKLP_FORCEX is not set to 1 -C jobname Specify the jobname -T jobname The same as -C. -p Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. This option is equivalent to "-oprettyprint" and is only useful when printing text files. -l Specifies that the print file is already formatted for the destination and should be sent without filtering. This option is equivalent to "-oraw". Some other options from systemv`s lp and berkeley`s lpr are ignored without error message PATHS
GtkLP looks for config-files under <configdir> then under $HOME/.gtklp/ and at last under /etc/gtklp/. To hide Printers from users, use the following pathes: /etc/gtklp/accept/ /etc/gtklp/deny/ $HOME/.gtklp/ Just put an empty file with the name of the printer the user should see by default to accept, put an empty file with the name of the printer the user should never see to deny. If only accept exists, all but the accepted printers are allowed. If only deny exists, all but the denied printers are accepted. All users can deny accepted printers, but they can't unhide denied ones. SPECIAL
In GtkLP you can define a browser to open the help URL, the CUPS-Homepage and so on. Just use the your favorite HTML browser. The first $1 in command-line will be substituted by the URL. If you can't connect to an X-Server, GtkLP acts as console-lpr. If called as lpr, or lp, GtkLP acts on console and has some other command-line parameters, see above. VARIABLES
You can set the following environment variables to influence the behaviour of GtkLP: CUPS_SERVER The default CUPS-server to connect to IPP_PORT The default Port of the CUPS-server to connect to PRINTER The default printer to use GTKLP_FORCEX Set to 1 to force X-Mode for lpr and lp ERROR
GtkLP produces the following Error-Codes: 0 normal program termination 1 small error, wrong parameters, etc. 2 Server Problems, server not found, no default printer found, etc. 3 BAD error. Fields declared too short, too many printers, etc. SEE ALSO
gtklpq(1), lpr(1), CUPS Software Users Manual http://localhost:631/documentation.html COPYRIGHT
This program was written by T. Mueller, 2000, 2001, 2002. It is licensed under the Terms of the GNU GENERAL PUBLIC LICENSE, see also http://www.gnu.org. CONTACT
The latest version of GtkLP is always available under http://gtklp.sourceforge.net/ Feel also free to contact me. Please mail also, if you like the software !!! ;-) Tobias Mueller 1.2.7 gtklp(1)
All times are GMT -4. The time now is 10:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy