Solved

Unix script command to ftp through the proxy server

Posted on 2004-09-01
4
401 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
Comment Utility
you are better off using expect
0
 

Author Comment

by:chokbeng
Comment Utility
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
Comment Utility
PAQed with points refunded (20)

modulo
Community Support Moderator
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

12 Experts available now in Live!

Get 1:1 Help Now