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
In reply to Re: Automating whois??
by tcf22
in thread Automating whois??
by sunadmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |