GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP automate script.
Operating System - HP-UX
1848917
Members
8006
Online
104039
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-14-2007 11:26 PM
06-14-2007 11:26 PM
FTP automate script.
Hi,
I want to automate FTP process & for that i want to write an UNIX script.
I want to send some files from hostserver (say) to ftp.host.com (say), the files are located in hostserver's
/interfaces/sid/send (say) directory.
I want to ftp with user ftpuser(say) & password dummypass (say).
Can anybody help?
Regards,
Vishal
I want to automate FTP process & for that i want to write an UNIX script.
I want to send some files from hostserver (say) to ftp.host.com (say), the files are located in hostserver's
/interfaces/sid/send (say) directory.
I want to ftp with user ftpuser(say) & password dummypass (say).
Can anybody help?
Regards,
Vishal
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 11:39 PM
06-14-2007 11:39 PM
Re: FTP automate script.
Hi,
This is a very simple step to automate FTP...but need to be further enhanced.
ftp -v -n $host.com < user "username" "password"
bin
prompt
put
quit
EOF
HTH,
Prabu.S
This is a very simple step to automate FTP...but need to be further enhanced.
ftp -v -n $host.com <
bin
prompt
put
quit
EOF
HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 11:45 PM
06-14-2007 11:45 PM
Re: FTP automate script.
Hey Vishal,
You could do something like this.
cd /interfaces/sid/send
ftp -nv ftp.host.com << EOF
user ftpuser dummypass
put thefile
bye
EOF
or if you want to put all of the files, after the "user" line use:
prompt
mput *
bye
EOF
Hope that helps.
You could do something like this.
cd /interfaces/sid/send
ftp -nv ftp.host.com << EOF
user ftpuser dummypass
put thefile
bye
EOF
or if you want to put all of the files, after the "user" line use:
prompt
mput *
bye
EOF
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2007 07:54 PM
06-17-2007 07:54 PM
Re: FTP automate script.
Hi Vishal,
you can get two very good Perl script ftpget.pl and ftpput.pl which perform what you need in a controlled way checking the errors as well.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1126288
HTH,
ARt
you can get two very good Perl script ftpget.pl and ftpput.pl which perform what you need in a controlled way checking the errors as well.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1126288
HTH,
ARt
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP