/ Forside / Teknologi / Udvikling / Perl / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Perl
#NavnPoint
bjarneA 141
poul_from 50
soccer 30
Nicknack 14
Tmpj 0
Custom Perl Script for Scanning IP's and R~
Fra : Belphegor


Dato : 21-08-01 19:17

Okay, here's the issue

I need to get a perl script that will scan ips, (ping them) with a given
set.
1. I say "192.1.1 -100" and it'll ping from "192.1.1.1" to "192.1.1.255",
with the exception of "192.1.1.100".
2. Then it asks for Samba Share name.
3. Then it asks for the SHARES it enters ALL Share data, and EVERY Last file
into a given database......

can someone help me out here please? that's very important!
thanks in advance!

Belphegor



 
 
Nezar Nielsen (22-08-2001)
Kommentar
Fra : Nezar Nielsen


Dato : 22-08-01 00:44

"Belphegor" <globalpunk@hotmail.com> wrote in message
news:isyg7.31951$vG4.1593277@weber.videotron.net...
> Okay, here's the issue
>
> I need to get a perl script that will scan ips, (ping them) with a given
> set.
> 1. I say "192.1.1 -100" and it'll ping from "192.1.1.1" to "192.1.1.255",
> with the exception of "192.1.1.100".
> 2. Then it asks for Samba Share name.
> 3. Then it asks for the SHARES it enters ALL Share data, and EVERY Last
file
> into a given database......

Take a look at the following modules available from CPAN:

Net::Ping,
Filesys::SmbClient &
Filesys::SmbClientParser

If you're using Win32, also take a look at the Win32::* modules available
from http://www.roth.net/perl/

and for db-stuff: DBI and DBD::whatever_kind_of_db_you_want_to_use.

If you want a working script, pay up, otherwise, read the modules'
documentation and at least give it a try yourself.

XFUT: comp.lang.perl.misc,comp.lang.perl.modules,dk.edb.programmering.perl
FUT: comp.lang.perl.misc

--
Mvh. Nezar Nielsen
http://fez.dk/




Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408914
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste