So...
I'm trying to script and FTP Backup of some files from openVMS Alpha machine to a Unixware 7 machine.
I decided to use .netrc to do all the FTP actions however when I send the
nmap command. It pretty much gets ignored while even other things such "ascii", "case" etc.. get respected during following FTP Transfers..
Interestingly enough, when I do the ftp connection by hand and enter all the commands in manually the FTPing is done properly.
For Example:
Remote File: Alpha.txt;147
Local file I want: alpha.txt
In the script I have
...
ascii
case
cd XYZ
nmap $1.$2;$3 [$1.$2]
mget *.*
and that doesn't work out.
but doing it manually does. I think it might be some quotation marks or something I need for the nmap variables?
Thanks