computing
  • 0

Macro Definition Missing Null Line Terminator

  • 0

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

Share

1 Answer

  1. sometimes reading skills help.
    an empty line at the end of the netrc-file is missing, and CRLF instead of
    CR is helpful, too.

    cheers

    wollie

    • 0