⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 remoteclient.pl

📁 ntop 3.2的源代码
💻 PL
字号:
#!/usr/bin/perl# # Copyright (C) 2001 Luca Deri <deri@ntop.org>##   	        http://www.ntop.org/### Description:## This is a simple program that shows how to# fetch information out of ntop## January 2001#use LWP::Simple;$ntopHost = "localhost";$ntopPort = 3000;$URL = "http://".$ntopHost.":".$ntopPort."/dumpData.html?language=perl";$content = get($URL);if($content eq "") {  print "No data. Please make sure ntop is up and running\n";} else {  # evaluate the hash table  %hash = eval($content);    # %hash now contains the received entries    while (($key, $value) = each %hash) {    print $key."\n";  }      # now let's print the raw output    print "==========================\n";  print $content."\n";  print "==========================\n";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -