ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved lpadmin - remove printer with a space in the name

    IT Discussion
    unix osx apple lpadmin printers administration ard
    2
    4
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      Because of Apple, and GUI and Imaging, our existing printers have spaces in their name "Printer on 12" or "Accounting Printer"

      With lpadmin I can delete printers with lpadmin -x printer-name without special characters. However space is a special character, and I'm attempting to find a way to remove these printers without having to touch every damn machine.

      Any guidance on what character would qualify as a space in this example?

      lpadmin -x Accounting Printer ?

      wrapping the name in quotes (single or double) does not work.

      1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403
        last edited by DustinB3403

        Nevermind!

        lpadmin adds spaces as underscores!

        So with lpadmin -p I was able to find the list of printers.

        lpadmin -p
        Accounting_Printer

        And with lpadmin -x Accounting_Printer was able to remove the printer!
        Removed Accounting_Printer

        dbeatoD 1 Reply Last reply Reply Quote 2
        • dbeatoD
          dbeato @DustinB3403
          last edited by

          @DustinB3403 said in lpadmin - remove printer with a space in the name:

          Nevermind!

          lpadmin adds spaces as underscores!

          So with lpadmin -p I was able to find the list of printers.

          lpadmin -p
          Accounting_Printer

          And with lpadmin -x Accounting_Printer was able to remove the printer!
          Removed Accounting_Printer

          Good to know for central administration of Apple devices. What are you using right now?

          DustinB3403D 1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403 @dbeato
            last edited by

            @dbeato said in lpadmin - remove printer with a space in the name:

            @DustinB3403 said in lpadmin - remove printer with a space in the name:

            Nevermind!

            lpadmin adds spaces as underscores!

            So with lpadmin -p I was able to find the list of printers.

            lpadmin -p
            Accounting_Printer

            And with lpadmin -x Accounting_Printer was able to remove the printer!
            Removed Accounting_Printer

            Good to know for central administration of Apple devices. What are you using right now?

            ARD and Unix cli

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post