PRINTER INTERFACE SCRIPT FOR CANON IMAGERUNNER PRODUCTS ------------------------------------------------------- LAST UPDATED: 1/18/02 This is Printer Interface Script for UNIX that works with Canon imageRUNNER products. Some modification to the script may be necessary to customize it for the particular model you are using. The Script allows to use most of the capabilities of the imagerRUNNER products through the command line. This script only supports ASCII and PCL files. No PostScript is Supported since the script uses PJL and PCL codes. If you need additional information or have suggestions on how to improve this script please contact me at rdipasquale@cusa.canon.com. I'll include more UNIX platforms installation in this documentation as I'm able to test them. HP UX INSTALLATION ------------------ Use the canon lp Canon imageRUNNER interface with the as follows: 1. Loging as root 2. Stop the spooler /usr/sbin/lpshut 2. Copy the interface script to the "/usr/lib/lp/model" directory and set permissions as follow: chown bin canon_interface_script chgrp bin canon_interface_script chmod a+r canon_interface_script 3. Setup a local printer as follows: lpadmin -plocal_printer_name -v/dev/null -mcanon_interface_script -orc accept local_printer enable local_printer EXAMPLE, If the local printer name is PR, and the canon_interface_script is ir5000, then lpadmin -pPR -v/dev/null -mir5000 -orc accept PR enable PR NOTE: The canon interface script could have other names like ir400, ir210, ir5000 depending on the type of printer being used. 4. Setup a remote printer as follows (the name of the remote printer must be the same as that of the local printer with the "xfer" termination. lpadmin -p remote_printer -v/dev/null -mrmodel -ob3 -ocmrcmodel -osmrsmodel -orc -ormprinter_ip_name -orpprint Where remote_printer = local_printerxfer, printer_ip_name is the printer ip name in /etc/hosts. EXAMPLE: If the name of the local printer is "PR", the name of the remote printer must be "PRxfer". Assume that the printer has an entry in /etc/hosts named ir5000. lpadmin -p PRxfer -v/dev/null -mrmodel -ob3 -ocmrcmodel -osmrsmodel -orc - rmir5000 -orpprint SOLARIS INSTALLATION -------------------- Use the canon lp Canon imageRUNNER interface with the as follows: 1. Loging as root 2. Copy the interface script to the "/usr/lib/lp/model" directory and set permissions as follow: chown lp canon_interface_script chgrp lp canon_interface_script chmod a+rx canon_interface_script 3. Setup a local printer as follows: lpadmin -p local_printer_name -v /dev/null lpadmin -p local_printer_name -i /usr/lib/lp/model/canon_interface_script accept local_printer enable local_printer EXAMPLE, If the local printer name is PR, and the canon_interface_script is ir5000, then lpadmin -p PR -v /dev/null lpadmin -p PR -i /usr/lib/lp/model/ir5000 accept PR enalbe PR NOTE: The canon interface script could have other names like ir400, ir210, ir5000 depending on the type of printer being used. 4. Setup a remote printer as follows (the name of the remote printer must be the same as that of the local printer with the "xfer" termination. lpadmin -p remote_printer -s printer_ip_name!print Where remote_printer = local_printerxfer, printer_ip_name is the printer ip name in /etc/hosts. EXAMPLE: If the name of the local printer is "PR", the name of the remote printer must be "PRxfer". Assume that the printer has an entry in /etc/hosts named ir5000. lpadmin -p PRxfer -s ir5000!print USING THE PRINTER INTERFACE SCRIPT OPTIONS ON THE COMMAND LINE -------------------------------------------------------------- To use printer options with this printer interface use the following syntax: lp -d local_printer -o option1=value1 -o option2=value2 ...file1 file2 ..filen Where the Options and their values can be as follows (lower or upper case). Note, the options in parenthesis can be used as short cuts (e.g.: off intead of genericoff, etc) mailbox (ma..) 0 1 2 ..... 99 staple (st..) genericoff (off) genericon (on) oneupleft (upleft, upl..) oneupright (upright, upr..) onelowleft (lowleft, lowl) twoup twolow saddlestitch (stitch, saddle, sa..) zfold (fold) genericoff (off) genericon (on) top (to) bottom (bo..) right (ri..) punch genericoff (off) genericon (on) top (to..) bottom (bo..) right (ri..) booklet (book) genericoff (off) genericon (on) mediatype (media, me..) paper (pa..) transparency (tr..) resolution (re..) 300 600 papersource (source, paperso..) NOTE: If paper source is not specified, Auto Paper Select will be used. -1 Stack bypass/Multipurpose Tray 0 Auto Select 1 Drawer 1 2 Drawer 2 3 Drawer 3 4 Drawer 4 5 Drawer 5 (if available) 6 Drawer 6 (if available) deck (de..) Side Paper Deck papersize (size, papersi..) NOTE: If Paper Size is not specified, LETTER size paper will be used. letter (let..) iegal (leg..) ledger (led..) statement (sta..) executive (exe..) a4 a3 a5 a6 orientation (or..) portrait (po..) landscape (la..) duplex (du..) none (no..) long (lo..) short (sh..) startbin (sb, st..) 1-9 For machines with multiple bin finishers pitch (pi..) n Integer representing No. characters per inch height (he..) n Integer representing point size