in reply to Automating whois??
open(OURS, '>/path/to/ours'); open(THEIRS, '>/path/to/theirs'); open(UNKNOWN, '>/path/to/unknown'); foreach my $line (@domain) { chomp $line; print "running whois on $line\n"; my $output = `$cmd $line`; if(#ours){ print OURS "$line\n"; }elsif(#theirs){ print THEIRS "$line\n"; }else{ print UNKNOWN "$line\n"; } } close(OURS); close(THEIRS); close(UNKNOWN);
- Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Automating whois??
by sunadmn (Curate) on Nov 10, 2003 at 19:42 UTC | |
by iburrell (Chaplain) on Nov 10, 2003 at 21:49 UTC |