I removed this line:
exit($cc);
and still get the same error in the browser
from command line:
# perl ntop4.cgi
+
[Mon Jul 25 14:27:27 2005] ntop4.cgi: Unrecognized escape \d passed th
+rough at ntop4.cgi line 53.
<html>
<head>
<title>ntop startup script</title>
<STYLE TYPE='text/css'>
h3 { color: red }
a { text-decoration: none; font: bold 14pt/16pt Ariel, serif }
a:hover { color: red } /* when mouse is over link */
</style>
<script language="javascript">
function hideWaitMsg(){
var obj = getElementById('wait_msg_text');
obj.visible = false;
}
</script>
</head>
<body bgcolor='#c0c0d0' onLoad="hideWaitMsg()">
<center>
<p><br></p>
<p><br></p>
<div id="wait_msg_text">pls wait, ntop will be started</div>
Mon Jul 25 14:27:28 2005 Initializing gdbm databases
<font face="arial,helvetica" size=2 color="#006600">status:
+</font> ntop<br><br>
<font face="arial,helvetica" size=2 color="#FF0000">
pls do not forget to shutdown, if you're not using </font>
<p><br></p>pls wait for 5 seconds before you click on this link:
<br><br><a href="https://192.168.0.3:3001"><b><U>NTOP</b></U></a>
<p><br></p><p><br></p><p><br></p><p><br></p>Maintained by <a href="mai
+lto:admin@domain.net"><font face="arial,helvetica" size=3>
admin</a></font>
</center></body></html>
Apache error log says:[Mon Jul 25 14:30:04 2005] [error] [client 192.168.0.105] [Mon Jul 25
+14:30:04 2005] ntop4.cgi: Unrecognized escape \\d passed through at /
+usr/local/www/cgi-bin/ntop/ntop4.cgi line 53.
[Mon Jul 25 14:30:04 2005] [error] [client 192.168.0.105] malformed he
+ader from script. Bad header=<html>: ntop4.cgi
greetings
cc |