how can I amend this function to include deleting a printer.
how can i amend this function to include the delete lpadmin -x printer command
Code:
function printerExists()
{
if [ $prExists -eq 1 ]; then
echo "Printer already exists. Skipping: \"$prName\""
else
# Add Printer Command
lpadmin -p "${prName}" -E -D "${prDescript}" -L "${prLocation}" -i /u1/cups/mac/"$prFilter_filter -v \
"$Prdriver"://"${prAddress}":"Prport"
fi
how can i amend this function to include the delete lpadmin -x printer command