APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SCO Unix/System V Printing FAQ


Some material is very old and may be incorrect today

© December 2003 (various)

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

Mixing Synchronics and Realworld or other mixed marriages in SCO Unix/System V printing

Sometimes mixing more than one program causes printer grief because one program adds form feeds to its reports and the other does not, so you have a nasty problem. It's usually not all that hard to fix, though; here's what I did for one customer with that problem:

Synchronics spooled printers are defined in the "synsuppl" file in the Synchronics directory (same thing on RealWorld but file is "run80r"). These take the form of:

 dd_printername="lp -s -dhpjet5"; export dd_printername
 

What I did was add "-o syn" to each line:

 dd_printername="lp -s -o syn -dhpjet5"; export
 dd_printername
 

Next, I modified the interface scripts. For the hpjet printers, these are found in the directory /usr/spool/lp/admins/lp/interfaces/model.orig/ Each file there is the script that print jobs are processed by. Within the scripts, the options are extracted by a section that begins:

 
 for i in $5
 do
        case "$i" in
 
        -postscript | postscript)
                format="PS"
                outputmode="raw";;
 
 

I added a test for "syn" to this:

 for i in $5
 do
        case "$i" in
 
        syn)
                outputmode="raw" ;
                FILTER="sed '$d'";
                SYN="true";;
                
                
        -postscript | postscript)
                format="PS"
                outputmode="raw";;
 
 
 

Therefore the script acts this way ONLY if "-o syn" is used, which will only be for Synchronics. Further on in the script, I added a section that tests for $SYN being true, and there I set the lines per page to 66. Finally, the FILTER setting above deletes the very last line of the report, which contains an extra form feed I don't think we want. To disable this, just change

        syn)
 
 
 to
 
        notsyn)
 
 
 

You might also be interested in RealWorld Printer Script by Bruce Baumann


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> (SCO Unix) Mixing Synchronics and Realworld or other mixedmarriages


Inexpensive and informative Apple related e-books:

Are Your Bits Flipped?

Photos: A Take Control Crash Course

iOS 8: A Take Control Crash Course

Take Control of Apple Mail, Third Edition

Sierra: A Take Control Crash Course






Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





The successful construction of all machinery depends on the perfection of the tools employed; and whoever is a master in the arts of tool-making possesses the key to the construction of all machines... The contrivance and construction of tools must therefore ever stand at the head of the industrial arts. (Charles Babbage)




Linux posts

Troubleshooting posts


This post tagged:

FAQ

Printing



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode