Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

FTP error log

$
0
0
Hi I'm here again.

This time I have a question that is not a really issue because I 've already found a workaround but I don't know if the behaviour is correct or not.

In my ksh shell I open a sftp connection to a remote machine.
this is the code:

Code:

sftp ${Csi_USER}@${Csi_HOST}<<EOF0 >> ${FTP_LOG_FILE} 2>> ${FTP_ERR_FILE}
where FTP_LOG_FILE and FTP_ERR_FILE are the files (with the path) for logging.
Meanwhile the FTP_LOG_FILE has always size > 0 I expect the opposite for FTP_ERR_FILE so only if there are errors the file should have size > 0.
Unfortunately this is not true because the FTP_ERR_FILE has always size > 0. It contains n lines one for an open connection like:
Connecting to 10.129.171.80...
Connecting to 10.129.171.80...
Connecting to 10.129.171.80...
Connecting to 10.129.171.80...
Is it possible to avoid this behaviour or it's the standard?
Thanks a lot.

Viewing all articles
Browse latest Browse all 16232

Trending Articles