- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shell script Help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 05:23 AM
06-14-2004 05:23 AM
shell script Help
ftp proxy.domain.com
echo "anonymous@ftp.ncib.nlm.nih.gov\n"
My problem is this. the first ftp.proxy.domain.com command works, but then I need to enter the next line automatically in my script. It appears that it is not accepting the anonyous@ftp.... portion. Am I missing a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 05:30 AM
06-14-2004 05:30 AM
Re: shell script Help
ftp some_host << EOF
user username password
cd
get xxx
close
bye
EOF
OR put your user_name and pass in .netrc file. OR
user_name=user_name
Password=pass
ftp -inv host_name << EOF
user $user_name $Password
your_stuff here..
EOF
A better way--setup ssh
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 05:46 AM
06-14-2004 05:46 AM
Re: shell script Help
ftp -n << EOF
open ftp.ncib.nlm.nih.gov
prompt
quo "user anonymous"
quo "pass "myname@email.com"
ascii
<
quit
EOF
HTH,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 06:01 AM
06-14-2004 06:01 AM
Re: shell script Help
The first ftp is to our outgoing Proxy server, then I need to pass the username and password to the actual ftp server:
user anonymous@ftp.ncib.nlm.nih.gov
pass nickd63@nickd.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 08:39 AM
06-14-2004 08:39 AM
Re: shell script Help
have you tried it this way?
ftp -in proxy << EOF
user proxyuser proxypasswd
user ftpuser@ftphost ftppasswd
ftpcommands
bye
EOF
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2004 09:00 AM
06-14-2004 09:00 AM
Re: shell script Help
export ftp_proxy=ftp://user:pass@my.ftp.proxy
ftp host.to.reach << EOF
user myuser mypass
get it all
bye
EOF
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 01:34 AM
06-16-2004 01:34 AM
Re: shell script Help
Note:
if I am doing a 'manual' ftp, this is what I type.
ftp outgoing.proxy.com
Then, I need to put in the actual userid and destination ftp site/location.
userid@destftp.com
Then, I need to put in my destination site password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 01:59 AM
06-16-2004 01:59 AM
Re: shell script Help
Pls take a look a lftp product into http://lftp.yar.ru/
After download and install it, create a ftp commands file, i.e:
#cat my_ftp_commands_file.ini
set ftp:proxy "http://
set http:proxy "http://
open -u
dir
Then execute:
#lfp -f my_ftp_commands_file.ini
To detailde info:
#man lftp
-or-
#lftp
lftp :~>help
Other interesting product could be http://hpux.connect.org.uk/hppd/hpux/Networking/FTP/ncftp-3.1.4/
Pls chk it!
Rgds.