Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-20-2009, 03:26 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
How to extract PCL code from printer and replace them

We previously used SCO UNIX and SCO Merge (DOS ) used the command "printer lpt1 unix" to get the default PCL codes which were replaced by search and replace of the PCL commands using sed command

For eg,

we have
"/s/\033E/\033(s3B/g" written inside FILE1

for replacing the E with (s3B on the printer.

we have the following line run under SCO (DOS mode).

printer lpt1 unix | cat <&0 | sed -f FILE1 | lp -d{defaultPrinter}

This command(printer) is not working / not available with DOSEMU (dos emulator) used with latest version of Linux.

Do we have any alternative commands for extracting PCL from printer and replace as needed by our application?

- Jensen
Old 02-20-2009, 04:35 PM   #2
Registered: Aug 2007
Distribution: Debian Squeeze
Posts: 46

Rep: Reputation: 15
It's been a long time since I used DOS, but I don't remember any 'printer' command. I suspect it's a SCO thing.

Your question is confusing. You seem to be alternating between *nix and DOS. Which one are you trying the command on? If it's DOS, this isn't the forum

Why don't you try 'man printer' or 'help printer' or 'printer /help' and see what comes up on the box where you can use that prog. Assuming that noone else is familiar with the command, the help output may enable us (or you) to find a suitable replacement.

EDIT: Whoops, I guess this *is* an acceptable forum for dosemu. Sorry!

Last edited by map250r; 02-20-2009 at 04:37 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print to HP P4515 using PCL codes for built-in printer fonts from AIX 5.2 jc2it AIX 1 03-31-2010 06:32 AM
Search-replace in code fuzzyBuzz Programming 12 10-15-2007 11:37 AM
Why can't I find a Generic PCL printer driver on CUPS rickh Linux - Hardware 1 05-05-2006 09:20 AM
extract modem and printer zips kapalka Linux - Newbie 1 03-27-2005 04:00 AM
search and replace C code vexer Programming 3 05-19-2004 12:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration