.netrcin your $HOME directory allows file transfers in batch mode. Permission on that file should be 600 (rw----); it will likely not work otherwise.
Each record has the format:
machine machine login login password passwdwhere each of machine, login and passwd refer to a system name with the login and password for that account on the machine.
Typically, this is used to do anonymous FTP transfers, so an entry could look like:
machine nrcnet0 login anonymous passwd firstname.lastname@example.org
FTP commands to be used would then be put in some file, and the command to be executed would be similar to
ftp machine filenamewhere the content of filename could look like