- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to make automatic ftp
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
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
10-31-2000 05:55 AM
10-31-2000 05:55 AM
I?m trying build script ( posix-sh ) to make automatic ftp
I would like put in script the user, passwd and ftp commands
How I make it ???
Thanks a lot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 05:57 AM
10-31-2000 05:57 AM
Solutionopen hostname
user username password
bye
2. Run the ftp command as follows:
ftp -i -n
For example, if you want to transfer files from a host called venus to your
system. The files need to be transferred in binary mode and the username for
logging into venus is joeuser with a password of abc123. The files are located
in /data and have an extension of .DB The files will be transferred to /tmp on
your system.
Create a text file called ftp.txt with the following lines:
open venus
user joeuser abc123
binary
mget /data/*.DB /tmp/*.DB
bye
Run the ftp command as follows:
ftp -i -n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 06:07 AM
10-31-2000 06:07 AM
Re: Script to make automatic ftp
ftp -v -n < ftp_script
###############################
# ftp_script
open
user xxx yyy
prompt off
cd
lcd
bin
mget filename
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 06:22 AM
10-31-2000 06:22 AM
Re: Script to make automatic ftp
Do a SEARCH in this forum for "FTP". You will be well rewarded. There are many examples and discussions of just the topic you seek. Here are just two threads to start you off:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe0830559ff7cd4118fef0090279cd0f9,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x00517e990647d4118fee0090279cd0f9,00.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2000 09:46 AM
10-31-2000 09:46 AM