I need to FTP a file say abc.dat to client server say xyz.ibm.com location /etc/passwd/ibm with user name and password.
I want to make sure my script when FTP the file abc.dat of 1000kb is correctly got transfered with the same contant every time to Clients server how do I confirm the same please reply.
Use sftp OR scp.. Its 100% guaranteed secure and integrity is full proof than ftp. and you need not send across the id and password over a TCP/IP network.
#!/usr/bin/ksh
ftp -v -n "172.10.10.111" << cmd #( here you can give your server ip of hostname)
user "username" "passwd" #
cd /export/home/amit
lcd /export/home/ibm/
bin
hash
put filename ( you can put the file neme as avaribale and pass it to script)
quit
cmd