From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6154892417e755b7,start X-Google-Attributes: gidfee84,public From: "Daniel J. Dick" Subject: Another printer/postscript related question Date: 1995/09/21 Message-ID: #1/1 X-Deja-AN: 110503804 organization: Oracle Corporation. Redwood Shores, CA content-type: TEXT/PLAIN; charset=US-ASCII mime-version: 1.0 newsgroups: comp.unix.osf.osf1 We have a need to be able to print postscript jobs as well as say DEC LN03 type print jobs and be able to detect which is which automatically. The lpspr program seems to default to ASCII if the first two characters of a print job are not %!, and we need to have it default to ANSI. If I use the "-D ansi" specification, then PostScript jobs will not get handled properly. I scratched up a sort of wrapper to get around this--I wrote one in Bourne shell and one in C, and they both sort of work intermittently. Is there a good, commonly used, standard way to do this in a more clean way? Thanks for your help! +-Daniel J. Dick----------o---------------------------------------------------+ | Oracle Corporation /|\ Brook's Law: Adding manpower to a late software | | System Administration << project makes it later. | +-(415)506-2127-----------O---------------------------------------------------+