- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to FTP in a shell
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-17-2002 12:18 AM
09-17-2002 12:18 AM
FTP does not allow an optional file as a script to automate ftp sessions.
Shall I install another FTP server like ProFTP or is there a solution with th HPUX FTP client ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 12:24 AM
09-17-2002 12:24 AM
Re: how to FTP in a shell
Do you mean include the ftp process in a script ?
If yes, just like the following,
ftp -n
cd
lcd
put
bye
EOF
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 12:57 AM
09-17-2002 12:57 AM
Re: how to FTP in a shell
(
echo "user username passwd"
echo "ftp command"
echo "ftp command"
echo "ftp command"
echo "close"
) | ftp -vni hostname > /logdir/logfile.name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 01:17 AM
09-17-2002 01:17 AM
Re: how to FTP in a shell
cd
passive
put your_file
bye
END
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 12:47 PM
09-17-2002 12:47 PM
Re: how to FTP in a shell
I created a script that launched the ftp session, but when it was done, it would not execute any lines folling the end of the ftp session.
The only way around this seemed to be to create an ftp script, and launch that script from another script so when the ftp session was done, I could execute additional lines of code.
- Allan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 12:54 PM
09-17-2002 12:54 PM
Re: how to FTP in a shell
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5d6e107d277ad611abdb0090277a778c,00.html