Solved

Checking for valid printer

Posted on 2004-09-30
3
212 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 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

21 Experts available now in Live!

Get 1:1 Help Now