Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Small Victories for Perl

by mexnix (Pilgrim)
on Jan 25, 2002 at 19:34 UTC ( [id://141512]=note: print w/replies, xml ) Need Help??


in reply to Small Victories for Perl

A while after having my current job, my boss decided to bestow upon me the great task of printing out all of our DNS entries (300 or so - a hosting company). Of course he told me that there was no "easy" way, and to just print them page by page (BACKGROUND: we use a colbat qube for our DNS, so this was done via a pretty web GUI). 300 entries later, I was done, but now he wanted the whois report for every one! ugh! I wasn't going to take this on up the butt. I got the dns entries from the box (the actually files from /etc/named), and made a list with them using perl (Victory 1). Then I needed to do a whois on everyone and print it out.
Boss: I know of this ASP whois program that would work good for this a +nd it only costs $40! Me: Funk that. We use perl.
So I decided to get tricky. I went to CPAN, and found a few Whois modules (I ended up on Net::Whois::Raw, hehe, this is before I knew about the unix whois command though :/ ), then I found out our OkiData printer had a print server with an open TCP/IP port! Yay! A little bit of help from IO::Socket (/me drools), cacharbe, and OkiData's support site, I had a script that printed out 300 whois' in one nite! w00t! He normally asks me first before considering asp now :)

__________________________________________________

s mmgfbs nf, nfyojy m,tr yb-zya-zy,s zfzphz,print;

mexnix.perlmonk.org

Edit by tye to change PRE around long lines to CODE

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://141512]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-16 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found