Solved

Checking for valid printer

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
binary to char / hexadecimal 5 120
Filtering a file to table 9 101
transpose into pipe delemited 8 72
Get a Perl script to return content from a module 7 82
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…

809 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