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!

FTPING From AIX to AS400

Status
Not open for further replies.

gogr

IS-IT--Management
Jan 8, 2003
21
IE
I am trying to FTP from AIX server to and AS400 and have having difficulty with the syntax.

Can anybody see anything funny here .

Details
AIX -server ff_dbase_srv_03
fpirl2 - host name of AS400


Seems to be picking up root all the time as the userid . No entries in the /.netrc file at all .


ff_dbase_srv_04>ftp -i <<_EOF
> open fpirl2
> user itsograg
> password dublin25
> cd qgpl
> bye
> _EOF
Name (fpirl2:root): User name not valid in USER subcommand.
Login failed.
?Invalid command
You must first log on with subcommands USER and PASS.
ff_dbase_srv_04>ftp -i fpirl2 <<_EOF_^Juser itsograg^Jpassword dublin25^Jcd q>
Name (fpirl2:root): User name not valid in USER subcommand.
Login failed.
?Invalid command
You must first log on with subcommands USER and PASS.
ff_dbase_srv_04>
ff_dbase_srv_04>ftp -i <<_EOF^Jopen fpirl2^Juser itsograg^Jpassword dublin25^>
ff_dbase_srv_04>ftp -iv fpirl2 <<_EOF_^Juser itsograg^Jpassword dublin25^Jcd >
Connected to fpirl2.
220-QTCP at FPIRL2.
220 Connection will close if idle more than 15 minutes.
Name (fpirl2:root): 501 User name not valid in USER subcommand.
Login failed.
?Invalid command
530 You must first log on with subcommands USER and PASS.
221 QUIT subcommand received.
ff_dbase_srv_04>

Anybody seen this ??

Gerry
 
You might need the -n switch as well to prevent it prompting for a user ID.

Also, (unless this version of FTP is quite different to what I'm used to) usually there is no 'password' command, but you specify it as follows:

[tt]user itsograg dublin25[/tt] Annihilannic.
 
Thanks you Annihilannic . I've tried that out and its works percectly .

Thanks Again .
Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top