i am trying to use FTP in an shell script.
i created a following program
#!/bin/sh
HOST='172.29.32.202'
USER='oracle'
PASSWD='syntel_123'
FILE='file.txt'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
I have also tried creating the file .netrc
machine MCK_SRV_2
login oracle
password syntel_123
but still it gives the same error.
Thanks in advance
Regards
manish
Start Free Trial