- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp script
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-21-2005 09:30 PM
06-21-2005 09:30 PM
I want to copy one file to another server.
can any one help me out.
Regards
Musaddaq
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 09:37 PM
06-21-2005 09:37 PM
Re: ftp script
Check the url below (docID=PU94082118354
) about 'How do I use "ftp" in a shell script?' :
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065257476
Hope this can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 09:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 09:39 PM
06-21-2005 09:39 PM
Re: ftp script
Simple script
ftp -n <
user user_name password (change user_name and passwd)
bin
put filename
EOF
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 09:39 PM
06-21-2005 09:39 PM
Re: ftp script
you can use expect scripting utility to automate ftp proces. check man expect for more information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 09:41 PM
06-21-2005 09:41 PM
Re: ftp script
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x74e49200caded5118ff40090279cd0f9,00.html
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=97954
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 09:50 PM
06-21-2005 09:50 PM
Re: ftp script
I got it.
Thanks a lot.
Regards
Musaddaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 10:14 PM
06-21-2005 10:14 PM
Re: ftp script
If it is just for copying a single file. Can you think of rcp/remsh...?
Cheers!!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 10:22 PM
06-21-2005 10:22 PM
Re: ftp script
I have 410 files
Regards
Musaddaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2005 07:35 PM
06-22-2005 07:35 PM
Re: ftp script
These tools work by url-s or uri-s. For ftp they are "ftp://user:password@site.domain/path/to/file" or "ftp://user@site.domain/path/to/file" (this asks for a password) or "ftp://site.domain/path/to/file" (this uses anonymous-ftp).
`wget` is also capable of transfering entire trees.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2005 10:23 PM
06-22-2005 10:23 PM
Re: ftp script
eg: nav file ->
...
...commands.
...
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2005 12:36 AM
06-23-2005 12:36 AM
Re: ftp script
As with all scripts, try the individual commands to see that they work OK. Then put them into the script.
Bill Hassell, sysadmin