ftp fails to redirect output??
Posted on 2009-04-08
I have a simple ftp command that ftp's a file from one server to another and redirects its output to a log file. I use a .netrc file with the machine name and put command in it. Problem is, it only writes the log file "sometimes". It's totally intermittant. Any ideas what could case this? Here's the ftp command:
ftp svrName > /myDir/myLogFile
machine svrName login xxxx password xx macdef init
put /myDir/myFile targetDir/myFile