Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use CGI; my $query = new CGI; $value = $query->param('trace'); #$value =~ s (/;#!"'`|)/ /g; $value =~ s /;/ /g; $value =~ s /#/ /g; $value =~ s /!/ /g; $value =~ s /"/ /g; $value =~ s /'/ /g; $value =~ s /`/ /g; #$value =~ s /|/ /g; open (TRACE, "traceroute $value |"); @traceroute = <TRACE>; close (TRACE); print "Content-Type: text/html\n\n"; print "<html>\n<head>\n<title>\nRavenGate TraceRoute Results\n</title> +\n</head>\n<body>\n"; print "Hello There- I am writing this from scratch so please be patien +t. Thanks!\n\n"; foreach $item (@traceroute) { print "<BR>$item\n\n"; } print "</body>\n</html>\n"; exit (0);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI and Traceroute
by AgentM (Curate) on Oct 19, 2000 at 03:32 UTC | |
Re: CGI and Traceroute
by Kanji (Parson) on Oct 19, 2000 at 06:24 UTC | |
by merlyn (Sage) on Oct 19, 2000 at 08:11 UTC | |
by footpad (Abbot) on Oct 19, 2000 at 19:37 UTC | |
by KM (Priest) on Oct 19, 2000 at 19:55 UTC | |
by Kanji (Parson) on Oct 20, 2000 at 07:16 UTC | |
by merlyn (Sage) on Oct 20, 2000 at 10:27 UTC | |
RE: CGI and Traceroute
by redcloud (Parson) on Oct 19, 2000 at 03:29 UTC | |
Re: CGI and Traceroute
by cianoz (Friar) on Oct 19, 2000 at 03:29 UTC | |
Re: CGI and Traceroute
by blogan (Monk) on Oct 19, 2000 at 06:20 UTC |