Solved

Checking for valid printer

Posted on 2004-09-30
3
221 Views
Last Modified: 2012-06-27
Is there anyway to check in perl that a specific printer is installed on the host machine (using the printer URL)?
0
Comment
Question by:twist_
  • 2
3 Comments
 
LVL 10

Expert Comment

by:Jay Toops
ID: 12192864
What os? windows?
0
 
LVL 10

Accepted Solution

by:
Jay Toops earned 250 total points
ID: 12192884
0
 
LVL 48

Expert Comment

by:Tintin
ID: 12198471
Just parse the output of lpstat.  

Seriously, do you believe that printers are set up exactly the same on all servers, not to mention different operating systems.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now