Solved

Unix script command to ftp through the proxy server

Posted on 2004-09-01
4
402 Views
Last Modified: 2013-12-26
(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.
0
Comment
Question by:chokbeng
4 Comments
 

Expert Comment

by:chinna22
ID: 12033253
you are better off using expect
0
 

Author Comment

by:chokbeng
ID: 12061003
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>
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14394931
PAQed with points refunded (20)

modulo
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WinWaitActive parameters 12 31
format the code in java 6 86
only14 challenge 19 69
Problem to event 3 78
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now