# # (SCO Unix) Mixing Synchronics and Realworld or other mixedmarriages
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SCO Unix/System V Printing FAQ

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

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



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:

Photos for Mac: A Take Control Crash Course

Take Control of iCloud

Take Control of Apple Mail, Third Edition

Take Control of Numbers

El Capitan: 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





FORTRAN—the "infantile disorder"—, by now nearly 20 years old, is hopelessly inadequate for whatever computer application you have in mind today: it is now too clumsy, too risky, and too expensive to use. (Edsger W. Dijkstra)




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