- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp using a unix 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
12-03-2001 11:50 AM
12-03-2001 11:50 AM
ftp -inv <
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 11:55 AM
12-03-2001 11:55 AM
Re: ftp using a unix script
Try some word instead of !. Like
ftp -inv << EOF
open system
user login password
bin
mget *
quit
EOF
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 11:56 AM
12-03-2001 11:56 AM
Re: ftp using a unix script
Hi,
ftp -n hostname
user user_name user_password
bin "or" ascii
cd /to the directory
get file_name1
get file_name2
-USA..
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 11:58 AM
12-03-2001 11:58 AM
Re: ftp using a unix script
ftp -n << EOF
open host
user username passwd
prompt
cd /dir/where/you/want/file
lcd /dir/on/local/cleint #optional
mput *
bye
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 11:58 AM
12-03-2001 11:58 AM
Re: ftp using a unix script
Oops..
First should be like this (
ftp -n hostname <<-ftpover
End line
ftpover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 12:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 12:03 PM
12-03-2001 12:03 PM
Re: ftp using a unix script
Please see the attached shell script that I use for this purpose. It uses the same syntax as the others have mentioned above, however it's easily implemented and can be called from other scripts. It also includes some error checking to ensure the file was sent correctly. Hope that helps.
-Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 12:32 PM
12-03-2001 12:32 PM
Re: ftp using a unix script
ftp -inv Servername <
bin
mget *
bye
EndFTP
Once again thanks all of you.