mrimagepueblo
Programmer
This one is driving me nuts. In a /bin/sh script I am trying to create a login script to a windows ftp 5.0 server from a unix box. My password is Kug.cb!\c`
That is indeed a back tick at the end. I lost track of all the combinations I have tried with \ and " and '
My last attempt doesn't give an error, or is even trying the pass $PASSWD but simply prompts for my password and then proceeds with the rest of the script:
USER='myusername'
#PASSWD="Kug"."cb"!""\"c"`""
PASSWD="Kug.cb\\\!\\c'"
ftp -n ftp.domain.com <<END_OF_SCRIPT
user $USER
pass $PASSWD
prompt off
cd ..
cd _Photos
binary
hash
mget *.zip
bye
END_OF_SCRIPT
exit 0
That is indeed a back tick at the end. I lost track of all the combinations I have tried with \ and " and '
My last attempt doesn't give an error, or is even trying the pass $PASSWD but simply prompts for my password and then proceeds with the rest of the script:
USER='myusername'
#PASSWD="Kug"."cb"!""\"c"`""
PASSWD="Kug.cb\\\!\\c'"
ftp -n ftp.domain.com <<END_OF_SCRIPT
user $USER
pass $PASSWD
prompt off
cd ..
cd _Photos
binary
hash
mget *.zip
bye
END_OF_SCRIPT
exit 0