I'm using IBM AIX 5.2 to send file with ftp to other unix machine.
The command is into a shell:
...
ftp -n > outFtp 2> errFtp <<PARAM
open $2
user $3 $4
put $1 $remote
bye
PARAM
...
then i look at the size of errFtp and outFtp to see if there are some error message.
It works with file of size > 0.
It doesn't works with file of size 0 cose the server return in the standard error (>errFtp) a message like this:
netout: write returned 0?
It's possible to configure server messaging to skip this kind of "warning"?
Other method to check if ftp works fine?
Thanks.