Ambush! - The Online Geek Community
Computer Related => Software => Topic started by: opiesilver on December 02, 2008, 12:51:18 PM
-
Assuming I have a .netrc file in place can I add a command, in variable form, in this string?
ftp -v -d servername 4021 (`$command`) $filename
I know I've formatted this before and had it work internal to a script but cann't remember how I did it.
Maybe something like;
foreach filename (`cat file`)
ftp -v -d servername 4021 (`$command`) $filename
end
where the command variable list is set out in another flat file.
Anyone have an opinion?
-
Forgot to mention this is an AIX box.
-
I will have to refer to my FTP scripting stuff at home, but I think you can only call a script file, not use a command. The script file can do all the commands you want though.
let me see what I can find out.
-
Here is what I've figured out;
1. I hate AIX because nothing works quite right.
2. Only under AIX operating systems can ftp call macros
3. You can place as many variables and command strings are you want in macro for ftp as long as you don't exceed 512kb.
4. Even if you know that you formatted the .netrc in the home directory perfectly that it doesn't mean that ftp on an AIX box will read it correct more than once.
5. My brain hurts.....