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 <<_EOF_
bin
cd "${SourceDirectory}"
lcd "${InputDirectory}/${MfgSiteName}/input"
get "${InputFileName}"
bye
_EOF_

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