Link to home
Start Free TrialLog in
Avatar of chokbeng
chokbengFlag for Malaysia

asked on

Unix script command to ftp through the proxy server

(echo ' (echo "
user <proxy_username> <proxy_password>
user <remote_ftp_username> <remote_ftp_password>
verbose
passive
binary
put <filename>
ls <filename>
close
bye"
) | ftp -n <proxy_server>') | ftp -n <remote_ftp_server>
 

The above command can be used in linux but not hp unix.  Can somebody please help to see whether the command is correct for hp unix or not.  Thank you.
Avatar of chinna22
chinna22

you are better off using expect
Avatar of chokbeng

ASKER

I got the answer already,

echo ' echo "
user <proxy_username> <proxy_password>
user <remote_ftp_username> <remote_ftp_password>
verbose
passive
binary
put <filename>
ls <filename>
close
bye"
 | ftp -n <proxy_server>' | ftp -n <remote_ftp_server>
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial