Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    a shell for automatic download always give error

    please help!!!!!!!!!!!!!!!!!!!!! I have been spending a several days on this. I have created the .netrc file
    machine ***.net
    username anonymous
    password lanshanhongye

    When I source .netrc
    it shows that
    -bash: machine: command not found

    So that I add the user name and password into the shell file as follows

    ftp -i <<!
    cd /pub/
    lcd /disk2/pub
    mget *

    Please login with USER and PASS.
    Please login with USER and PASS.
    KERBEROS_V4 rejected as an authentication type
    ?Invalid command
    ?Invalid command

    Thanks in advance!!!!!

  2. #2
    try using lftp:
    lftp ftp://userassword@server -d -e "commands ; quit"

  3. #3
    You don't source the .netrc file. Just let FTP use it.

    The format of your .netrc file is incorrect. Try:
    machine localhost
      login anonymous password whatever
    Also make sure permissions are correct:
    chmod 0600 ~/.netrc
    But based upon what you are trying to do, you should really use allwimb's suggest.

  4. $spacer_open

Posting Permissions

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