From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,85ea17ca6cab00be,start X-Google-Attributes: gidfee84,public From: "Majid Shadmand" Subject: Variables used in printing... Date: 1998/08/21 Message-ID: <01bdccbb$2c9d5120$8ca92fd1@shadmand>#1/1 X-Deja-AN: 383236275 Organization: UUNET Canada News Transport Newsgroups: comp.unix.osf.osf1 Hi everyone, Please excuse my lack of UNIX knowledge. When using the "tee" comand to take in a print job sent from a certain software (to be piped into the "lp" command), apparently there are five variables involved - $1...$5. Any idea as to what values those five variables could be holding? The software in question is a financial package called "Tetra". It uses various "paper"s (logical printers) each assigned to ONE physical printer that you may have available to you. The software uses a printing program called "printfmt" which puts out the print job. In order to get the print job done in various formats (eg. portrait, landscape, etc.) I am taking the output of the "printfmt" program and piping it into the "tee" command, which then writes the output to a temporary file. The file then is piped into the "lp" command where I can deal with various escape sequences to accomplish different print outputs. The "printfmt" program, apparently, sends out the above mentioned five variables. Would anyone out there have had experience with this situation, or know in general, when a print job is sent out by another application what kinds of variables are involved? I would appreciate any kind of input on this issue. Regards, Majid Shadmand shadmand@monisys.ca