Results 11 to 16 of 16
There is a $ in it
I tried what you'd showed previously no it didn't work
AAAAAAAAAAAAAAAAAAAAAAAAAAA(screaming)
Thanks
mace...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-16-2011 #11Linux Newbie
- Join Date
- Jun 2006
- Posts
- 141
There is a $ in it
I tried what you'd showed previously no it didn't work
AAAAAAAAAAAAAAAAAAAAAAAAAAA(screaming)
Thanks
mace
- 12-16-2011 #12
That '$' is a special character in scripting languages. So it will need to be escaped. So try changing your password variable so its in quotations, this should eliminate the special characters.
Code:PW="Pa$$w3rd"
linux user # 503963
- 12-20-2011 #13Linux Newbie
- Join Date
- Jun 2006
- Posts
- 141
Here is the script. As noted before it worked from 2007 when we ftp'ed to a local server(physical) but since we moved to virtual servers and specifying a domain it has failed.
BUT it does work manually
date
fname1=/lib1/scrpt/ftp_last_bk1.chk
fname2=/lib1/scrpt/ftpbk1.chk
cmp $fname1 $fname2
if [ $? -eq 0 ]
then
echo 'bk1 file match begin ftp'
else
echo " no match stop ftp"
exit 0
fi
USER=DOMAIN\\\\USERID
PW="PASSWORD"
ftp -n -v -i IP.ADD.RE.SS PORT# << EOF
user $USER $PW
bin
lcd /xbackup
prompt off
put backup files*
quit
EOF
thanks
mace
- 12-20-2011 #14
How bizarre. How about this?
Senior Advisor - http://www.unix.comlinux user # 503963
- 12-20-2011 #15Linux Newbie
- Join Date
- Jun 2006
- Posts
- 141
BEAUTIFUL !!!!!!!!!
That was it !!!!!!
Scathefire thank you for sticking with this
Have a great holiday
mace
- 12-20-2011 #16
No problem buddy
linux user # 503963


Reply With Quote
