Hello,
Looking for help on setting up a variable properly within a bash script. My goal is to install a printer driver by calling the lpadmin command from within an AppleScript (.app). I am trying to point the variable '$dir' to the same location as the script. I placed the name of the driver at the end of the variable command since I cant seem to figure out the syntax. Here is what I got so far:
Looking for help on setting up a variable properly within a bash script. My goal is to install a printer driver by calling the lpadmin command from within an AppleScript (.app). I am trying to point the variable '$dir' to the same location as the script. I placed the name of the driver at the end of the variable command since I cant seem to figure out the syntax. Here is what I got so far:
Code:
dir=(cd -P -- "$(dirname -- "$0")" && pwd -P ) CNMCIRAC5250S2.ppd.gz
Code:
lpadmin -p $SysPrinter1 -v $Addr1 -D $DispPrinter1 -L $Bldg1 -m $dir -E -o printer-is-shared=false