Perl Network programming

K

Kuldeep

Hi
How t get list computer in perticular Domain through Perl Codng
e.g. If doamin is http://jojo
and computers in this domain are comp1,comp2,comp3

than after querying to jojo script should return
names of conmputer as

Domain : jojo
Computers : comp1,comp2,comp3
 
B

Bernhard Brueck

Kuldeep said:
Hi
How t get list computer in perticular Domain through Perl Codng
e.g. If doamin is http://jojo
and computers in this domain are comp1,comp2,comp3

than after querying to jojo script should return
names of conmputer as

Domain : jojo
Computers : comp1,comp2,comp3

easy way:
#!/bin/perl
$ARGV[0] =~ /jojo/ and print "comp1,comp2,comp3\n";
:)

hard way:
find the network address and do reverse lookups
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top