shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] ftp automation script pc-> unix


From: Julio Neves
Subject: Re: [shell-script] ftp automation script pc-> unix
Date: Thu, 30 Aug 2001 13:32:05 -0300

Hi Jim,
I'm not a DOS expert, but this should work:

- Edit a .bat file (AutoFTP.bat for example) and insert the following 
lines:
ftp -ivn %1
user %2 %3
prompt
bin
get %4
bye

- To run the ftp you need to do:
AutoFTP <remote host> <UserName on remote host> <password on remote host> 
<Name of file>

<remote host> Is the IP Address of the *nix host or its name (if that name 
and the IP address are defined in file c:\windows\host)

The above ftp options means:
-i - You don´t need to answer yes or no for each file to transfer;
-v - Verbose;
-n - ftp don´t prompt for UserName and Password. This option must be used 
with the "user" ftp command. It´s more secure because you can hide both;

Good luck,
Julio


Favor responder a address@hidden
Para:   address@hidden
cc: 
Assunto:        [shell-script] ftp automation script pc-> unix

Hi,
i need a ftp automation script that run on PC/DOS.
user
enters hostname and filename as arguments to the
script command. script transfers the file from the
remote host.
does anyone have such script?. If yes, can you share?.
if yes,
can you explainhow to install and run?.
Jim






reply via email to

[Prev in Thread] Current Thread [Next in Thread]