sir, you forgot }at the last part of your script :-)

> Create a perl script called pingsweep.pl
> 
> for( $i=1; $i<255; $i++ ) {
>     print "125.125.125.$i: ";
>     print `ping -c 1 125.125.125.$i`;
>     print "\n";
> 
> Then at the command prompt, have it write to a file like this
> perl pingsweep.pl > pingsweep.txt
> 
> Looks like it will do what you want it to.  But then again, they said
> that about Windows.
> 
> Leonard
> 
> 
> >>> [EMAIL PROTECTED] 03/23/02 20:50 PM >>>
> Hello,
> 
> Suppose there are 150 pc in a network and all of these pc use same
> subnet 
> mask.
> i.e: 1 pc>>>>125.125.125.2
>      2.pc>>>>125.125.125.5
>      3.pc>>>>125.125.125.7
>      .
>      .
>      .
>      150.pc>>>125.125.125.208
> Now I want to know which of these pc are alive.
> How can I do that using "ping"?
> thanks..
>      
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to