- 論壇徽章:
- 0
|
各位好:
自己做了一個(gè)Linux系統(tǒng)下ftp上傳文件的腳本,但是一直沒(méi)有想明白如何實(shí)現(xiàn)上傳文件日志記錄,不知道各位是否有這方面的經(jīng)驗(yàn),請(qǐng)指教,謝謝!
腳本內(nèi)容是這樣的
/usr/bin/ftp -n << !
open 10.10.110.11
user ftpuser ftpuser
prompt
binary
cd mput
mput 123.txt
bye
!
我想記錄的其實(shí)就是紅色字體的部分
[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.
|
|