Click here to Skip to main content
15,891,881 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When I am trying create and send one /tmp/filename.txt to target server. I am not able process the file and It is not available in target server(It was not copied) but file has created in /tmp directory and data has copied.
Note: file is not moving to target server directory. and I am running by .sh script.


HOST="ftp.server.com"
USER="username"
PASSWD="password"
FILE="/tmp/test.sh"

echo"copied to test file">$FILE

ftp -n $HOST <<EOF
USER $USER $PASSWD
ascii
cd targetDir
put $FILE
quit
EOF
Posted
Updated 11-Jul-15 1:19am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900