i am getting this error ” Macro definition missing null line terminator.”
while attempting batch FTP here is my script
echo “macdef init” >> ${HOME}/.netrc
echo “prompt off” >> ${HOME}/.netrc
echo “ascii” >> ${HOME}/.netrc
echo “lcd /home/prodinst/jobs” >> ${HOME}/.netrc
echo “cd DB2CON.SYSREC01” >> ${HOME}/.netrc
echo “put DSNP$filedate.txt PROD$filedate” >> ${HOME}/.netrc
echo “close” >> ${HOME}/.netrc
echo “bye” >> ${HOME}/.netrc
chmod 600 $HOME/.netrc
an empty line at the end of the netrc-file is missing, and CRLF instead of
CR is helpful, too.
cheers
wollie