Macro definition missing null line terminator

April 8, 2011 at 12:02:20
Specs: linux
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


See More: Macro definition missing null line terminator

Report •

#1
April 11, 2011 at 01:37:15
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


Report •
Related Solutions


Ask Question