On my AIX box, ftp output a message from every file tranfered :
$ ftp localhost
Connected to loopback.
220 KLOGI810 serveur FTP (Version 4.1 Fri Mar 29 22:11:06 CST 2002) pr�t.
Name (localhost:user):
331 Mot de passe requis pour user.
Password:
230 Utilisateur user connect�.
ftp> cd TMP
250 Ex�cution de la commande CWD termin�e.
ftp> lcd TMP/FTP
Local directory now /home/user/TMP/FTP
ftp> prompt off
Interactive mode off.
ftp> mget F*.DAT
200 Ex�cution de la commande PORT termin�e.
150 Etablissement de la connexion de donn�es pour F0.DAT (0 octets).
226 Transfert termin�.
200 Ex�cution de la commande PORT termin�e.
150 Etablissement de la connexion de donn�es pour F10.DAT (0 octets).
226 Transfert termin�.
200 Ex�cution de la commande PORT termin�e.
150 Etablissement de la connexion de donn�es pour F11.DAT (0 octets).
226 Transfert termin�.
ftp> bye
221 Au revoir.
If you ftp output is similar you can do something like this :
its assumed that files of type xxx*.txt are being transferred through the script and thats an indirect way of identifying how many files are going to be transferred with the ls -1 xxx*.txt | wc -l option....
another option has mentioned here to grep from the logs after ftping...
you do use multiple file transfer and why isnt that interactive prompting is not turned off by specifying -i option?
First i would like to thank you for your reply.
I don't have much knowledge on both shell scripting as well as on FTP.
I just came to know by seeing the reply that -i option is used to turn off tthe interactive scripting.
Can you please suggest me the code we should be added in the code which i have sent to 1.Log files whenever the script is executed and 2.total number of files transfered.