- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP Auto login
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-27-2005 04:09 AM
06-27-2005 04:09 AM
I made an entry in .netrc file and wrote script. But it halts after the first FTP command. Pls suggest. OS is HPUX 11.0.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 04:18 AM
06-27-2005 04:18 AM
Solution-------------
FTP Script
--------------
ftp -in myhost << EOF
user username password
get /tmp/bla
get /tmp/foo
EOF
------------------------------------------------------------
#ftp at command line(exposes the user password)
-------------------------------------------------------------
(
echo "echo "user user_name user_pass"
echo "bin"
echo "cd /to_dir"
echo "put your_file"
echo "close"
echo "bye"
)|ftp -vni hostname > log_file
The better is to use .netrc file.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 04:18 AM
06-27-2005 04:18 AM
Re: FTP Auto login
ftp -n -v hostname > $LOG << ENDFTP
user username passwd
prompt off
binary
cd wherever
lcd wherever
mget *
quit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 05:31 PM
06-27-2005 05:31 PM
Re: FTP Auto login
http://www4.itrc.hp.com/service/james/search.do?todo=search&searchtext=ftp%2Bscript&from=forums&origin=0&wpa=forums1.itrc.hp.com%3A80&searchcategory=ALL&hpl=1&searchcriteria=allwords&rn=25&source=7000&chkServStor=on&presort=rank&esc=europe-support.external.hp.com
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2005 06:02 PM
06-27-2005 06:02 PM
Re: FTP Auto login
user
Run ftp as 'ftp -in