- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ftp and answer file
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
09-07-2004 09:26 PM
09-07-2004 09:26 PM
I would like to connect to a server with FTP.
Is it possible to use an answer file to give the parameters and the command.
If yes, can you give the right syntax.
Thank you for your help
Nicolas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 09:34 PM
09-07-2004 09:34 PM
Re: Ftp and answer file
Try the following:
ftp -n << EOF
open
etcetera...
...
...
...
EOF
MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 09:47 PM
09-07-2004 09:47 PM
Re: Ftp and answer file
Try the following:
% ftp <
user whatever
pass password
put filename
quit
EOF
Also go through this example:
http://www.quepublishing.com/articles/article.asp?p=170517&seqNum=2
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 09:58 PM
09-07-2004 09:58 PM
Re: Ftp and answer file
ftp -v << file.ftp
content of file.ftp:
"open wherever.com
user whatever
pass password
(m)put/(m)get filename
bye"
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 10:19 PM
09-07-2004 10:19 PM
Re: Ftp and answer file
i write
ftp << EOF
open frbpcs24
user root
pass mypasswd
dir
quit
EOF
the answer
Password:Name (frbpcs24:root):
Login incorrect.
Login failed.
Passive mode on.
Please login with USER and PASS.
Passive mode refused. Turning off passive mode.
Please login with USER and PASS.
Please login with USER and PASS.
I could not give my password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 10:26 PM
09-07-2004 10:26 PM
Re: Ftp and answer file
ftp -i -n
user username passwd
ls
!hostname
get /tmp/testfile
bye
EOF
It will do it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 10:29 PM
09-07-2004 10:29 PM
Solutioncat > /tmp/ftpanswerfile
user root
ls
!hostname
get
put file
bye
-----
chmod 700 /tmp/ftpanswerfile
ftp -i -n
It will do it out.
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 11:50 PM
09-07-2004 11:50 PM
Re: Ftp and answer file
Thank you for your help