Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aix ftp batch login 1

Status
Not open for further replies.

glennf

IS-IT--Management
Sep 30, 2002
2
US
I am trying to automate a connection and ftp file transfer - the command will be initiated from a Windows 2000 server connecting to a RS6000 AIX machine - seems straight forward enough except the FTP login, which requires a password, does not work - I am not sure how to pass the password to the RS6000 - if I enter the password on the same line as the user id the RS6000 sees that password as part of the user name - if I enter it on the next line I get an error saying that the user requires a password for login - any help would be GREATLY appreciated!! Thanks, Glenn
 
Put the following lines in a file called ftp_cmd:
open <my_server_name>
user <my_ftp_user>
<my_ftp_password>
<any command you need>
bye

and initiate the transfert with:
ftp -n -s:ftp_cmd

If it still doesn't work, take a look at the help of FTP client (ftp -h, maybe ?) on the Win2K server, Aix has nothing to do with it.
 
Here's an example:
On your PC:
1. create a file &quot;getcmd&quot;:
user root abcde
prompt
ascii
cd /tmp
mget *.txt

2. create another file &quot;ftpget.bat&quot;:
ftp -n < getcmd

3. double-click the icon of &quot;ftpget&quot;, then everthing is done.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top