CUPS printing and control escape codes


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users CUPS printing and control escape codes
# 1  
Old 12-22-2011
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 with. I added JetDirect's IP to the hosts and used The UNIX and Linux Forums - Learn UNIX and Linux from Experts interface to add the printer, its model was in the list (this is HP P2015n) and the test print worked like a charm. but when I run app and print from it the control codes in the file body are not recognized as a control sequence characters, but rather as a plain text and printed along with the actual text. I captured the file from the app and tried to print it with -o raw option,
Code:
lpr -P lpr5 -o raw prtfile

but result is the same, control codes are treated as a part of the text.

Any help on how to tune up this CUPS would be appreciated.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

2. UNIX for Advanced & Expert Users

Troubleshooting printing through Cups

Hello Experts, I have been facing an issue with printing through cups configured on Linux server. All was going on well but all of a sudden the printers started giving an error message, "Unsupported format application/postscript!" and we cant get any prints of any printer. Need your help as... (2 Replies)
Discussion started by: Rockyc3400
2 Replies

3. Red Hat

cups printing error

Hi All, Having searched for a solution to this issue i found no suggestions which help my particular problem. I am getting the following error message on 1 of the 3 printers i have configured: recoverable: Network host 'xxx.xxx.xxx.xxx' is busy; will retry in 30 seconds All 3 printers are... (0 Replies)
Discussion started by: Tommyk
0 Replies

4. UNIX for Advanced & Expert Users

Slow printing to network printers using CUPS

Hi Guys, I've inherited a mess of an infrastructure in my new job, there hasn't been a sys admin in post for about a year, so things are falling apart. The first thing to break after I started was the printer server. I have it working again, and people can print, however it's very slow, slower... (0 Replies)
Discussion started by: rudigarude
0 Replies

5. Shell Programming and Scripting

'watch' not interpreting escape codes in bash script

Hi there, I'm fairly new to bash scripting and already having some troubles. I'm making a script that can print some series of strings in colors based in the information of a file, for simplicity let's say it only does: #!/bin/bash printf "\eWhen you execute this in the command line it... (1 Reply)
Discussion started by: Arashi
1 Replies

6. Ubuntu

rdiff-backup using escape codes on vfat thumbdrive

I thought it may be nice to use rdiff-backup to backup my websites to a thumb drive. But all the capital letters are substituted with octal escape codes. How can I over come this? There are no issues backing up to another ext3 drive. The source drive is ext3 the thumb drive is vfat mounted... (0 Replies)
Discussion started by: mikemc
0 Replies

7. SCO

Printing as a CUPS client, only root can print!

Hi, i'm running Openserver 5.0.7 as a CUPS client for a Linux server. The root user can issue a "lpstat -t" to see the printers and can submit jobs without issues. The problem presents when I try to work as a regular user. If I issue an "lpstat -t" all I get after a few seconds is "lpstat:... (1 Reply)
Discussion started by: cyruspy
1 Replies

8. UNIX for Dummies Questions & Answers

Using color escape codes in less

Hi all, Not sure how "for dummies" this question is, but I'd better use understatement... A. My Environment ============== I am using RedHat Linux, version 2.6.18-53.el5. When I type less --version I get: less 394 Copyright (C) 1984-2005 Mark Nudelman ... My terminal is configured... (1 Reply)
Discussion started by: Source2Exe
1 Replies

9. Linux

Landscape printing broken in CUPS?

Hello, I am using version: cups-config --version - 1.2.4 However, when i use the -o land or -o landscape command it doesn't print in Landscape. I have the same problem on another server. (Both running CENTOS). Does landscape printing work in CUPS? Is there a fix? Thanks in an... (0 Replies)
Discussion started by: stuaz
0 Replies

10. UNIX for Dummies Questions & Answers

escape codes

I did a search and found the link for escape codes,- but I am not sure how to modify this script to set the margins. I started with a script that was already written on my system to set a printer to print landscape. I need to send an report that is in an ascii file to multiple printers from my... (1 Reply)
Discussion started by: MizzGail
1 Replies
Login or Register to Ask a Question
cups-browsed(8) 														   cups-browsed(8)

NAME
cups-browsed - A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers SYNOPSIS
cups-browsed [-v | -d | --debug] DESCRIPTION
cups-browsed has three independently switchable functions: 1. Browse Bonjour broadcasts of remote printers and create/remove local raw queues pointing to these printers. 2. Browse CUPS broadcasts of remote printers and create/remove local raw queues pointing to these printers. 3. Broadcast local queues with the CUPS protocol. OPTIONS
-v, -d, --debug Debug mode FILES
/etc/cups/cups-browsed.conf NOTES
Please take references to cups 1.6.x to include newer versions. Similarily, cups 1.5.x is intended to encompass older versions too. In environments with only cups 1.6.x servers and clients (plus cups-browsed on either server or client or both) the function described in 1. enables the automatic discovery of remote queues and their display in printing dialogues of applications and with command line tools. The facility provided by 3. means that servers running cups 1.6.x plus cups-browsed can broadcast their local queues so that clients with cups 1.5.x get these queues automatically available. The outcome of 2. is that clients running cups 1.6.x plus cups-browsed can use the CUPS broadcasts from servers with cups 1.5.x. As with browsing of Bonjour broadcasts, the created local raw queues are available to appli- cations and command line tools. SEE ALSO
cups-browsed.conf(5) /usr/share/doc/cups-filters/README AUTHOR
The authors of cups-browsed are listed in /usr/share/doc/cups-filters/AUTHORS. This manual page was written for the Debian Project, but it may be used by others. 29 June 2013 cups-browsed(8)