GetConf
上传用户:pycemail
上传日期:2007-01-04
资源大小:329k
文件大小:1k
- #!/usr/bin/perl
- # $Id: GetConf,v 1.2 1999/09/12 17:04:55 macgyver Exp $
- #
- # GetConf: Obtain a list of all ProFTPD configuration directives.
- # Author: MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
- # Copyright(C) 1999, MacGyver. All Rights Reserved.
- #
- foreach $arg (sort @ARGV) {
- open(FILE, $arg) || die("Unable to open $arg: $!");
-
- while(<FILE>) {
- next unless /^s*statics*conftables*([^s_]*)_.*/;
- print "Module $1:n";
-
- while(<FILE>) {
- last if /};/;
-
- if(/{s*"(.*)".*}/) {
- print " $1n";
- }
- }
-
- print "n";
- }
-
- close(FILE);
- }