LFTP: How to know time taken in transferring a file?

北慕城南 提交于 2019-12-13 20:05:28

问题


I am using LFTP for file transfer. The file transfer is successful but at the end of a successful file transfer, only the number of bytes transferred is displayed. I need to know the time taken in transferring the file, as well.

I am using LFTP because I need to provide the username, password and the required ftp command all in a single command. (lftp -u username,password -e "your command;quit" ftp.site.com). Therefore, using some other FTP daemon is probably not an option.

Is it possible to display transfer time using LFTP?

Thanks


回答1:


Use the time command. Use it before most any command and it will give you a run down of the time it takes to complete that command.

time lftp -u username,password -e "your command;quit" ftp.site.com

Output will be like this:

real    0m2.963s
user    0m0.000s
sys     0m0.012s


来源:https://stackoverflow.com/questions/31924066/lftp-how-to-know-time-taken-in-transferring-a-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!