Sponsored Content
Full Discussion: Perl : traceroute error
Special Forums IP Networking Perl : traceroute error Post 302693215 by giridhar276 on Wednesday 29th of August 2012 01:47:47 AM
Old 08-29-2012
Perl : traceroute error

I am writing a perl code(windows) to traceroute IP address and to print the output.

Could anyone please supply the code.

I had executed the below code which was taken from cpan modules

Code:
#!C:/perl/bin/perl.exe
use Net::Traceroute;
$tr = Net::Traceroute->new(host=> "google.com");
if($tr->found) {
my $hops = $tr->hops;
if($hops > 1) {
print "Router was " .
$tr->hop_query_host($tr->hops - 1, 0) . "\n";
}
}

But it is generated as error message

C:\scripts>perl traceroute1.pl
No output from traceroute. Exec failure? at C:/Perl/site/lib/Net/Traceroute.pm
line 359.


Could anyone please help me in sorting this issue ?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

will traceroute work for this?

hello all- I am soon to convert a large scale ftp server and my problem is this. There are currently over 50,000 ftp profiles (each one within an individual file) that I need to determine which of the 2 interfaces it is traveling to get to its destination. My plans were that I will loop thru... (2 Replies)
Discussion started by: hedrict
2 Replies

2. Programming

how we can use traceroute

how we can use traceroute in unix c so how we can get the output of traceroute command in c thank u,inadvance sree (3 Replies)
Discussion started by: phani_sree
3 Replies

3. UNIX for Advanced & Expert Users

traceroute

Hi, Can any one suggest me an add on feature for the traceroute command. Thanks in advance. Regards, Selvi (4 Replies)
Discussion started by: salvi
4 Replies

4. UNIX for Dummies Questions & Answers

traceroute

Good afternoon Can anyone explain traceroutes to me and when it would be necessary/what situations would call one to use it? (2 Replies)
Discussion started by: iamnew2solaris
2 Replies

5. IP Networking

Traceroute response

I have 20 servers I installed an application to that is returning message " wrong dispatcher or port " when starting agents. They all have the same dispatcher ip and going through the same port number. After verifying there are no application issues, we figured it was firewall related. The Firewall... (1 Reply)
Discussion started by: HFJ
1 Replies

6. UNIX for Advanced & Expert Users

Explain and example of traceroute.

Hi Colleagues, Somebody can explain me and send me examples about traceroute, I know is for network but I need anderstand your funcionality. Thank you for advanced. (2 Replies)
Discussion started by: systemoper
2 Replies

7. UNIX for Dummies Questions & Answers

Traceroute Query

Hi guys, Quick traceroute query. As part of some research I'm doing I need to send a traceroute to an equal number of IPv4 and IPv6 addresses on the net and basically capture the number of hops, and intermediate IP addresses from the traces. This all needs to be automated as there are... (2 Replies)
Discussion started by: churchill
2 Replies

8. Shell Programming and Scripting

perl script to traceroute an IP from windows

I am writing a perl code(windows) to traceroute IP address and to print the output. I had executed the below code which was taken from cpan modules #!C:/perl/bin/perl.exe use Net::Traceroute; $tr = Net::Traceroute->new(host=> "google.com"); if($tr->found) { my $hops = $tr->hops; if($hops... (4 Replies)
Discussion started by: giridhar276
4 Replies

9. IP Networking

Traceroute

I have some question about traceroute: 1. Can we hide our computer from traceroute? (2 Replies)
Discussion started by: budiantho_indra
2 Replies
PAR::Filter(3)						User Contributed Perl Documentation					    PAR::Filter(3)

NAME
PAR::Filter - Input filter for PAR SYNOPSIS
$code = 'use strict; print "Hello, World! ";'; $ref = PAR::Filter->new('PodStrip', 'Bleach')->apply($code); print $code; # pod-stripped and obfuscated code print $$ref; # same thing $ref = PAR::Filter->new('PodStrip', 'Bleach')->apply('file.pl'); print $$ref; # same thing, applied to file.pl DESCRIPTION
Starting with PAR 0.76, "pp -f" takes a filter name, like "Bleach", and invokes this module to transform the programs with PAR::Filter::Bleach. Similarily, "pp -F Bleach" applies the Bleach filter to all included modules. It is possible to pass in multiple such filters, which are applied in turn. The output of each such filter is expected be semantically equivalent to the input, although possibly obfuscated. The default list of filters include: o PAR::Filter::Bleach The archetypical obfuscating filter. o PAR::Filter::Obfuscate Use B::Deobfuscate to strip away indents and comments, as well as mangling variable names. o PAR::Filter::PatchContent Fix PAR-incompatible modules, applied to modules by default. o PAR::Filter::PodStrip Strip away POD sections, applied to modules by default. o PAR::Filter::Bytecode Use B::Bytecode to strip away indents and comments. This filter is deprecated! For source hiding, have a look at PAR::Filter::Crypto instead and make sure to read about its caveats. AUTHORS
Audrey Tang <cpan@audreyt.org> COPYRIGHT
Copyright 2003-2009 by Audrey Tang <cpan@audreyt.org>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.16.2 2012-01-06 PAR::Filter(3)
All times are GMT -4. The time now is 07:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy