当前位置: 技术问答>linux和unix
[求助]vsftpd服务器端有没有判断文件是否传完的机制啊,能不能请各位大神给个思路啊,下了VSFTPD的源代码,还没研究出方法呢
来源: 互联网 发布时间:2017-05-29
本文导语: 如题, 有什么方法么,急。 | 我猜不可行。因为文件不是一次性传完的,如果是分几个线程分别请求文件的不同部分,怎么判断? | You can keep a log of uploads and downloads ...
如题, 有什么方法么,急。
|
我猜不可行。因为文件不是一次性传完的,如果是分几个线程分别请求文件的不同部分,怎么判断?
|
You can keep a log of uploads and downloads but You'll have to use a cron job to email them to you.
Code:
xferlog_enable
If enabled, a log file will be maintained detailling uploads and
downloads. By default, this file will be placed at
/var/log/vsftpd.log, but this location may be overridden using
the configuration setting vsftpd_log_file.
Or if you prefer something even fancier, you will have to write a separate script using inotify kernel module:
http://man7.org/linux/man-pages/man7/inotify.7.html
Code:
xferlog_enable
If enabled, a log file will be maintained detailling uploads and
downloads. By default, this file will be placed at
/var/log/vsftpd.log, but this location may be overridden using
the configuration setting vsftpd_log_file.
Or if you prefer something even fancier, you will have to write a separate script using inotify kernel module:
http://man7.org/linux/man-pages/man7/inotify.7.html