Hi Friends,
I tried to send some zips from local to remote location but the transfer is not sucess i can transfer the zips partially can some one assist me how to make it
as sucess
i had used the below code
Thanks in advance
siva
I tried to send some zips from local to remote location but the transfer is not sucess i can transfer the zips partially can some one assist me how to make it
as sucess
i had used the below code
Code:
#!/bin/sh /usr/local/bin/expect <<EOF spawn sftp [I]USERNAME[/I]@[I]IPADDRESS[/I] expect "password:" send "Tgsf324a \r" expect "sftp> " send "cd /nas_ftp5/Customer/Troy/tbscclm/tmp/BSSFtp \r" expect "sftp> " send "lcd /forms/bscclmsa/outdata/bsca/b2collate/its/ready \r" expect "sftp> " send "put HOV_CLM_ATT_bsc20090223010100.md5 \r" expect "sftp> " send "lcd /forms/bscclmsa/outdata/bsca/b2collate/its/ready \r" expect "sftp> " send "put HOV_CLM_ATT_bsc20090223010100.zip \r" expect "sftp> " send "ls \r" expect "sftp> " send "bye " EOF
siva
Comment