I am trying to set up a .netrc file so that I can FTP files from one machine to another in a script.
I have created a .netrc file with the machine name login and password for the remote machine and a macro. When I execute an FTP to the machine in the .netrc file I get an error message saying
Error - .netrc file not correct mode.
Remove password or correct mode.
If I remove the password and then FTP I am prompted for a password as expected, then when I enter the password the transfer works fine.
Any ideas what is wrong?
Thanks
Alan
I have created a .netrc file with the machine name login and password for the remote machine and a macro. When I execute an FTP to the machine in the .netrc file I get an error message saying
Error - .netrc file not correct mode.
Remove password or correct mode.
If I remove the password and then FTP I am prompted for a password as expected, then when I enter the password the transfer works fine.
Any ideas what is wrong?
Thanks
Alan