#! /bin/sh # # Due to the shell, any option like -q="lpr -Pmyprinter" is parsed to # CNPRINT as -q=lpr -Pmyprinter. This simple shell program gets around it. # It must be put under a directory included in the PATH, for example, # /usr/local/bin. If you do not have root privilege, put it under # the current directory. # # I named it as "lpgen" and used "chmod 755 lpgen" to set file protection # # You are free to add any other "lpr" options. Note that the "-Pgen" option # specifies my printer "gen", you must change it. # /usr/bin/lpr -Pgen $1 # # Another way to use a second printer is to output the PS to stdout and # then direct it to "lpr", like # # cnprint file.gb -out | lpr -Pgen #