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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

?? Automate FTP to AS400 from and AIX server

Status
Not open for further replies.

gogr

IS-IT--Management
Jan 8, 2003
21
0
0
IE


I am trying to get the correct syntax for FTP on an 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 (itsograg -user profile on AS400 )
> password dublin25 (dublin25 - User password on AS400)
> 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>

I know there is no put or get but I'm not interested in that just the syntax
Has anybody seen this ?

Regards
Gerry
 
Remove 'user' and 'password', just have the username and the password in there. iSeriesCodePoet
IBM iSeries (AS/400) Programmer
[pc2]
 
iSeriesCodePoet - Thanks for that info . Works now

the is the syntax which will send a file called flagfile.gog to library QGPL on the AS400

ff_mis_srv_02>ftp -ivn 10.99.0.118 << _EOF
> user itsograg dublin25
> cd qgpl
> as
> lcd /
> put flagfile.gog flagfile.yes
> bye
> _EOF

Rgds
Gerry

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top