sunadmn has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w # This script will run a whois on a list of domains names use strict; my $domains = '/var/tmp/clean'; my $cmd = '/usr/local/libtpp-1.32.02.redhat6/bin/tpp -c /usr/loca +l/libtpp-1.32.02.redhat6/bin/tpp.db -whois'; my $out = '/var/tmp/out_put'; open(OUT, ">$out") || die "Cant creat $out\nReason: $!\n"; open(IN, "$domains") || die "Cant open $domains to read\nReason: $!\n +"; my @domain = <IN>; close(IN); foreach my $line (@domain) { chomp $line; print "running whois on $line\n"; system "$cmd $line"; } close(OUT); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Automating whois??
by tcf22 (Priest) on Nov 10, 2003 at 19:35 UTC | |
by sunadmn (Curate) on Nov 10, 2003 at 19:42 UTC | |
by iburrell (Chaplain) on Nov 10, 2003 at 21:49 UTC | |
|
Re: Automating whois??
by shockme (Chaplain) on Nov 10, 2003 at 20:27 UTC | |
by sunadmn (Curate) on Nov 10, 2003 at 21:08 UTC | |
by Anonymous Monk on Nov 10, 2003 at 22:55 UTC | |
|
Re: Automating whois??
by ehdonhon (Curate) on Nov 10, 2003 at 22:57 UTC |