[cups] Fwd: Re: Problem with lpadmin

Zdenek Dohnal zdohnal at redhat.com
Wed Feb 23 01:33:05 PST 2022


On 2/23/22 04:30, Ken Wright wrote:
> I tried the following command:
> $ lpadmin -p LaserJet_M15a -E -D "White Printer" -L "On Dad's desk" -m
> everywhere -o printer-is-shared=true -v
> ipp://HP%20LaserJet%20M15a%20(103F7B)%20(USB)._ipp._tcp.local/
>
> and got the response:
>
> -bash: syntax error near unexpected token `('
>
> Did I misenter the command?

Hi Ken,

bash takes () as subshell invocation, so you need to pass the uri 
covered in quotes, or convert the brackets into 
'%its_hexadec_num_from_ascii_table' characters.

>
> Ken
>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://lists.cups.org/mailman/listinfo/cups

-- 
Zdenek Dohnal
Software Engineer
Red Hat, BRQ-TPBC



More information about the cups mailing list