- 论坛徽章:
- 0
|
各位好:
自己做了一个Linux系统下ftp上传文件的脚本,但是一直没有想明白如何实现上传文件日志记录,不知道各位是否有这方面的经验,请指教,谢谢!
脚本内容是这样的
/usr/bin/ftp -n << !
open 10.10.110.11
user ftpuser ftpuser
prompt
binary
cd mput
mput 123.txt
bye
!
我想记录的其实就是红色字体的部分
[ftpuser@test ~]$ ftp localhost
Connected to test.localdomain.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:ftpuser): ftpuser
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put 123.txt
local: 123.txt remote: 123.txt
227 Entering Passive Mode (127,0,0,1,74,129)
150 Ok to send data.
226 File receive OK.
|
|