Hello,
Im looking for the best way to install printers via bash script. I download drivers from canon and it provides two options: PS driver with the size of 40mb and a UFRII pkg with the size of 71mb. We used to install using generic drivers but some docs dont print well. Im not to familiar with the differences between the two and was wondering if the entire pkg is needed to install for quality printing and have all printer options or can I just grab the PPD in /Library/Printers once installed and script it that way? The pkg's seem to have a ton more printers that i don't need and the largest file called canon_ps_core.pkg which I am not sure exactly it is. Any ideas or suggestions?
Script below fails right now with error: Permission denied
lpadmin: Unable to copy PPD file. (1)
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"${SCRIPTDIR}/CNMCIRAC5250S2.ppd.gz"
SysPrinter1="30th_North"
DispPrinter1="30th_North"
Addr1="lpd://10.71.30.17/"
Bldg1="Office"
sudo lpadmin -p $SysPrinter1 -v $Addr1 -D $DispPrinter1 -L $Bldg1 -m "$SCRIPTDIR" -E -o printer-is-shared=false