Forum CDRinfo.pl

Forum CDRinfo.pl (https://forum.cdrinfo.pl/)
-   Off topic (https://forum.cdrinfo.pl/f5/)
-   -   pinger (https://forum.cdrinfo.pl/f5/pinger-15245/)

misiek7 11.01.2003 22:49

pinger
 
Ma kto¶ dobry pinger pod winde?
Potrzebuje programik, który bedzie pingował co jaki¶ czas dany adresik i wyniki zapisywał do pliku.

mapsajm 12.01.2003 02:15

kiedy¶ na podobne pytania padała odpowiedĽ: "nie to forum".:P ale nie b±dĽmy drobiazgowi. pewnie jeszcze kto¶ to napisze za mnie:cool:

-Sid-The-Rat=> 12.01.2003 02:51

niby ja? :D

nie - ale o pingerach cos bylo wczesniej - zakladam ze nie 'poszukales'...

misiek7 12.01.2003 10:31

Szukałem ale nie znalazłem?

:help: :help: :help: :help: :help: :help: :help: :help: :help: :help:

+++LeWaP+++ 12.01.2003 12:37

nie wiem może to się przyda -> skrypt cgi na strone www, chyba loguje wyniki... sprawdĽ :)

=**************************************
= Name: ping.pl
= Description:When linked to a form on a
= webpage (forn code is included in source
= , just cut and paste), a surfer can ente
= r an IP and check if that host is alive.
=
= By: Jerry Lawson
=
= Returns:Returns the ping results.
=
= Assumes:The code was written for use w
= ith Microsofts IIS. It is easily modifia
= ble though to use with a Linux or Unix p
= latform. If you don't know how to modify
= it, e-mail me at jlawson7@adelphia.net.
=
=This code is copyrighted and has = limited warranties.Please see http://w
= ww.Planet-Source-Code.com/xq/ASP/txtCode
= Id.365/lngWId.6/qx/vb/scripts/ShowCode.h
= tm =for details. =**************************************

#!c:\perl\bin\perl.exe -w
#Script allows people to ping an ip address from a webpage.
#Allows surfers to see if a server is alive.
#Code by Jerry Lawson
#This code can be used by anyone, just leave these lines
#giving me credit.
#Written for use with Microsoft IIS
################################################## ############
#Cut and paste the following html and place it in your webpage
#<form name="ping" action="scripts/ping.pl" method="GET">
#<input type="text" name="ip" size="30"><br>
#<input type="submit" value="PING">
#</form>
################################################## ############
use strict;
use CGI ':standard';
my ($ip, @results, $i);
$ip = param('ip');
system("ping $ip > ping.log");
open(LOG,"<ping.log");
@results = <LOG>;
close(LOG);
print "Content-type: text/html\n\n";
foreach $i (@results){
print "$i<br>";
}

+++LeWaP+++ 12.01.2003 12:44

zobacz jeszcze Tu !

http://www.pcworld.pl/artykuly/22974_2.html

misiek7 12.01.2003 13:37

WIELKIE DZIĘKI ;)


Wszystkie czasy w strefie CET. Aktualna godzina: 21:44.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.