Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
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.
  1. #11
    Linux 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

  2. #12
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    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

  3. #13
    Linux 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

  4. #14
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    How bizarre. How about this?

    Senior Advisor - http://www.unix.com
    linux user # 503963

  5. #15
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    141
    BEAUTIFUL !!!!!!!!!
    That was it !!!!!!
    Scathefire thank you for sticking with this
    Have a great holiday
    mace

  6. #16
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    No problem buddy
    linux user # 503963

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •