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

ftp client cannot redirect stdout in AIX5.2 ?

Status
Not open for further replies.

jevin

IS-IT--Management
Jun 25, 2003
1
TW
Hi,
Does anyone encounter the problem of ftp redirection in AIX5.2 ?
I have a simple script like this:
===========================================
....
ftp -i -n ip-address > OUT_FILENAME << EOF
username password
ls -Rol
bye
EOF
......
===========================================
It works find before 5.2 (Tested in AIX4.3.3 and AIX5.1). But in
AIX5.2, nothing in OUT_FILENAME ....

Although
===========================================
....
ftp -i -n ip-address << EOF
username password
ls -Rol OUT_FILENAME
bye
EOF
......
===========================================
can generate an OUT_FILENAME in local, but it is not the right
solution I want. Because I want other ftp messages can be redirected
to one single file.
Any recommendation or suggestion? Tks.
(hmmm... copy /usr/bin/ftp from 4.3.3 or 5.1 to 5.2 may work, but..)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top