Unix/Linux

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • ftp problem

    1 answers - 1052 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    1. shihab
    Nov 22, 7:03 pm show options
    Newsgroups: comp.unix.questions
    From: "shihab" <shiha@gmail.com- Find messages by this author
    Date: 22 Nov 2005 06:03:50 -0800
    Local: Tues, Nov 22 2005 7:03 pm
    Subject: ftp stucks
    Reply | Reply to Author | Forward | Print | Individual Message | Show
    original | Report Abuse
    Hi ,
    I am facing a strange problem in my code
    I have written a shell script to automate ftp using .netrc file
    here is the portion of code
    ftp -i ${DomainName} 2>wcs_ftp_err.tmp 1>myfile <<_EF_
    bin
    cd "${SourceDirectory}"
    lcd "${InputDirectory}/${MfgSiteName}/input"
    get "${InputFileName}"
    bye
    _EF_
    and the problem is
    Sometimes it exits without any failure message after running for a long
    time
    even the the script also gets terminated , i.e the code after this also
    is not getting executed
    any idea it seems that ftp is getting stucked and nothing is
    working
    anything is appreciated
    Shihab
  • No.1 | | 1345 bytes | |

    shihab wrote:

    1. shihab
    Nov 22, 7:03 pm show options

    Newsgroups: comp.unix.questions
    From: "shihab" <shiha@gmail.com- Find messages by this author
    Date: 22 Nov 2005 06:03:50 -0800
    Local: Tues, Nov 22 2005 7:03 pm
    Subject: ftp stucks
    Reply | Reply to Author | Forward | Print | Individual Message | Show
    original | Report Abuse

    Hi ,
    I am facing a strange problem in my code
    I have written a shell script to automate ftp using .netrc file
    here is the portion of code
    --
    ftp -i ${DomainName} 2>wcs_ftp_err.tmp 1>myfile <<_EF_
    bin
    cd "${SourceDirectory}"
    lcd "${InputDirectory}/${MfgSiteName}/input"
    get "${InputFileName}"
    bye
    _EF_
    --
    and the problem is
    Sometimes it exits without any failure message after running for a long

    time
    even the the script also gets terminated , i.e the code after this also

    is not getting executed
    --
    any idea it seems that ftp is getting stucked and nothing is
    working
    --
    anything is appreciated
    Shihab

    maybe the ftp server wants passive access. So do:

    ftp -i ${DomainName} 2>wcs_ftp_err.tmp 1>myfile <<_EF_
    bin
    passive
    cd "${SourceDirectory}"
    lcd "${InputDirectory}/${MfgSiteName}/input"
    get "${InputFileName}"
    bye
    EF

Re: ftp problem


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Unix/Linux"

EMSDN.COM