LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   tracoute.pl (https://www.linuxquestions.org/questions/programming-9/tracoute-pl-430033/)

maseby 03-30-2006 10:03 AM

tracoute.pl
 
I've been searching for a perl script that incorporates
a perl written webserver with traceroute

it should look something like this, see this link:
http://www.tnib.de/cgi-bin/traceroute.pl

it should be a perl webserver that outputs the result...

does anyone know how to write it or where to get it?
plz help, am going mad....aldfjdkfajdlfh shla

cupubboy 03-30-2006 10:33 AM

Quote:

Originally Posted by maseby
I've been searching for a perl script that incorporates
a perl written webserver with a perl written traceroute

it should look something like this, see this link:
http://www.tnib.de/cgi-bin/traceroute.pl

does anyone know how to write it or where to get it?
plz help, am going mad....aldfjdkfajdlfh shla

Well the link you provided is a perl program that echo's the output of the traceroute command .. so that should be easy to do I think (I don't know perl)

About the "perl written webserver" I don't know what to say .. I'll just presume that's not what you meant and we can all be happy :)

In perl you should probably have something like `traceroute <host>` along the way .. but I should shut up now .. sinceI don;t know perl

Cheers

maseby 03-30-2006 10:40 AM

perl..
 
actually it's a perl written webserver that outputs the result from a traceroute as the link illustrates..that's what am looking for.

cupubboy 03-30-2006 10:48 AM

Quote:

Originally Posted by maseby
actually it's a perl written webserver that outputs the result from a traceroute as the link illustrates..that's what am looking for.

http://toolbar.netcraft.com/site_rep...://www.tnib.de

Actually it's an apache webserver


For what you need take a look at:
http://www.123webmaster.com/Scripts/Perl/Traceroute/

And for a lot more:
http://www.google.ro/search?q=perl+t...en-US:official

Cheers

maseby 03-30-2006 10:55 AM

I kinda suspected that it was apache, but am still looking for a perl webserver.

actually I've found one but I need it to run traceroute and then output the result

cupubboy 03-30-2006 10:58 AM

Quote:

Originally Posted by maseby
I kinda suspected that it was apache, but am still looking for a perl webserver.

actually I've found one but I need it to run traceroute and then output the result

I think you'll surely find the tracerout script on the links I gave above ...

Why do you need a perl webserver?!?

maseby 03-30-2006 11:07 AM

tnx for the link...

to answer your question, well wanted to put a similar function on my website.

harder than I thought.

still if anyone out there have needed solution, plz post it.

cupubboy 03-30-2006 11:14 AM

Ok .. I'm not going to argue about the webserver anymore still
http://en.wikipedia.org/wiki/Webserver

This-> http://www.tracert.com/download/trace.txt (wich is amongst the links above) Is exactly what you need...

Actually most of the scripts from http://www.123webmaster.com/Scripts/Perl/Traceroute/
Are exactly what you need...

You probably have an apache webserver at you site to ... so just take the script .. put it in the cgi-bin .. set proper permissions (if needed) .. and you're done

Cheers

-- Later edit
I posted a wrong link :)

maseby 03-30-2006 11:38 AM

no arguments here.


problem is that I wanted to run traceroute without apache or IIS and other webservers. I wanted a perlwritten webserver which I have found here:

http://www.rblasch.org/studies/cs629/pa3/wserv_med.pl

now I need it to run traceroute.

cupubboy 03-30-2006 12:02 PM

Well .. I think that webserver can serve only html pages ... and will not do what you need


All times are GMT -5. The time now is 11:55 AM.