Файловый менеджер - Редактировать - /usr/local/share/man/man3/Net::FTPServer::XferLog.3pm
Ðазад
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "XferLog 3pm" .TH XferLog 3pm "2007-08-16" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Net::FTPServer::XferLog \- parse FTP server xfer logs. .SH "SYNOPSIS" .IX Header "SYNOPSIS" # \s-1XFERLOG\s0 file: .PP .Vb 3 \& Mon Oct 1 17:09:23 2001 0 127.0.0.1 2611 1774034 a _ o r tmbranno ftp 0 * c \& Mon Oct 1 17:09:27 2001 0 127.0.0.1 22 1774034 a _ o r tmbranno ftp 0 * c \& Mon Oct 1 17:09:31 2001 0 127.0.0.1 7276 p1774034_11i_zhs.zip a _ o r tmbranno ftp 0 * c .Ve .PP # parse xfer log \s-1PROGRAM:\s0 .PP .Vb 7 \& use Net::FTPServer::XferLog; \& open T, \*(Aqtest.xlog\*(Aq or die $!; \& my $hashref; \& while (<T>) { \& $hashref = Net::FTPServer::XferLog\->parse_line($_); \& map { print "$_ => $hashref\->{$_} \en" } @Net::FTPServer::XferLog::field; \& print "\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-"; \& \& } .Ve .PP # \s-1OUTPUT\s0 .PP .Vb 10 \& day_name => Mon \& month => Oct \& day => 1 \& current_time => 17:09:23 \& year => 2001 \& transfer_time => 0 \& remote_host => 127.0.0.1 \& file_size => 2611 \& filename => 1774034 \& transfer_type => a \& special_action_flag => _ \& direction => o \& access_mode => r \& username => tmbranno \& service_name => ftp \& authentication_method => 0 \& authenticated_user_id => * \& completion_status => c \& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \& day_name => Mon \& month => Oct \& day => 1 \& current_time => 17:09:27 \& year => 2001 \& transfer_time => 0 \& remote_host => 127.0.0.1 \& file_size => 22 \& filename => 1774034 \& transfer_type => a \& special_action_flag => _ \& direction => o \& access_mode => r \& username => tmbranno \& service_name => ftp \& authentication_method => 0 \& authenticated_user_id => * \& completion_status => c \& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \& day_name => Mon \& month => Oct \& day => 1 \& current_time => 17:09:31 \& year => 2001 \& transfer_time => 0 \& remote_host => 127.0.0.1 \& file_size => 7276 \& filename => p1774034_11i_zhs.zip \& transfer_type => a \& special_action_flag => _ \& direction => o \& access_mode => r \& username => tmbranno \& service_name => ftp \& authentication_method => 0 \& authenticated_user_id => * \& completion_status => c \& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This parses \fBxferlog\fR\|(5) files into Perl hashrefs. The fields returned are shown in the synopsis. Note that the standard \f(CW\*(C`current\-time\*(C'\fR field is returned as 5 separate fields here: day_name, month, day, current_time, year. .SS "\s-1EXPORT\s0" .IX Subsection "EXPORT" None by default. .SH "AUTHOR" .IX Header "AUTHOR" T. M. Brannon <tbone@cpan.org> .PP Thanks to .IP "\(bu" 4 Nic Heier for a doc fix. .IP "\(bu" 4 Mike Edwards for pointing out a bug when parsing files with spaces in their name. .IP "\(bu" 4 Zoltan Monori for pointing a bug in my code which parsed files with spaces in them the very next day! .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\(bu" 4 Net::FTPServer \- secure, extensible Perl \s-1FTP\s0 Server .IP "\(bu" 4 www.FAQS.org \- \s-1FTP RFC\s0 is here .IP "\(bu" 4 wu-ftpd, proftpd. These \s-1FTP\s0 servers started this xferlog syntax, Net::FTPServer supports it. .IP "\(bu" 4 slicker solutions to dealing with filenames with many spaces .Sp <http://perlmonks.org/?node_id=632864>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка