I wrote a bash shell script which will upload files in a directory one by one.
Since I have to log the upload result of EACH file, I would like to redirect the responses from FTP server to a file (like vsftpd's xferlog). In the shell script, I have my own redirection like this
echo "Some times Someone did something..." >> daily.log
Is it possible to redirect the FTP Server response to that file too??
Many thanks. If any information needed, please let me know!!!
Code:
Connected to 192.168.80.194.
220 "Welcome to MSL Fax Image FTP service."
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Switching to Binary mode.
200 Switching to Binary mode.
local: pantos-edibkg-manual.odt remote: pantos-edibkg-manual.odt
229 Entering Extended Passive Mode (|||48837|)
553 Could not create file.
local: pantos-sr-manual.odt remote: pantos-sr-manual.odt
229 Entering Extended Passive Mode (|||22316|)
553 Could not create file.
221 Goodbye.
Above is the sample FTP responses I would like to redirect to a file.