syntax error in printer name

Michael Sweet mike at easysw.com
Sat Sep 4 09:00:21 PDT 2004


Helge Blischke wrote:
> Kim wrote:
> 
>>Hi, I'm quite a novice at this all. I'm running a small lab and am looking to restrict user acces to some printers. The printer name as far as I can tell is Stylus_Photo_2200(FW:Standard_-_Minimize_Margins)
>>
>>I have had success denying access to printers with simple names, but when I try to block this one I get the message:
>>-bash: syntax error near unexpected token `('
>>
>>I realize this is probably like kindergarten to you all but I could could use some help.
> 
> 
> As for bash: escape the "(" with "\", i.e. "\(", and do the same
> for the closing bracket.
> 
> But I doubt IPP allows parens in printer names at all.

Since the printer-name attribute is a "name" and not a "keyword",
any non-control character is allowed, although CUPS disallows the
space and "/" characters.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Printing Software for UNIX                       http://www.easysw.com




More information about the cups mailing list