|We don't bite newbies here... much|
Abbreviated output when attempting to do whois via scriptby jerrygarciuh (Curate)
|on Aug 01, 2004 at 15:50 UTC||Need Help??|
jerrygarciuh has asked for the
wisdom of the Perl Monks concerning the following question:
I am attempting to track the redemption period status of a client's domain via a script. Initially I used Net::Whois but it produced a "No Match" response (due to the redemption period status at InterNIC I believe).
Because I know running a whois from the commandline is producing the output I want I changed to simply capturing the output via backticks
my $output = `whois somewebsite.com`;.
This produces the following:
[Querying whois.internic.net] [Redirected to whois.OnlineNIC.com] [Querying whois.OnlineNIC.com] [whois.OnlineNIC.com]
My question is why the output is abbreviated when I know the commandline output holds what I need. I thought I was capturing all of the command output with the back ticks.
Any advice greatly appreciated.
"The man who grasps principles can successfully select his own methods.
The man who tries methods, ignoring principles, is sure to have trouble.
~ Ralph Waldo Emerson