I'm new unix enviroment, and I have mamnaged to wrote a script to ftp a file from a remote machine.
My problem when the ftp has executed all other lines in the script are ignored and script exits. The message "file transfer has completed" is not displayed and date . Below is my sample script.
Please tell me what I am doing wrong here.
ftp -in ba0470.optus.com.au <<-END_FTP
user $userString $pswdString