- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP within a 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
10-19-2000 06:54 AM
10-19-2000 06:54 AM
Thanks for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 06:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 06:58 AM
10-19-2000 06:58 AM
Re: FTP within a script
There are lots and lots of posts in this forum to show you different ways to do this. Do a search on 'ftp'. Here are some just 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-19-2000 07:00 AM
10-19-2000 07:00 AM
Re: FTP within a script
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x19587e990647d4118fee0090279cd0f9,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe0830559ff7cd4118fef0090279cd0f9,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xf4677e990647d4118fee0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 07:34 AM
10-19-2000 07:34 AM
Re: FTP within a script
________________cut_____________
ftp -n (IP ADRESS) << End_of_Ftp
user (LOGIN) (PASSWORD)
prompt
mput (FILENAMES)
#or
put (FILENAME)
quit
End_of_Ftp
________________cut_____________
Best wishes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 08:51 AM
10-19-2000 08:51 AM
Re: FTP within a script
ftp -i -n < "ftpfilename"
where filename is a file with ftp command like:
open "HOSTNAME"
users USERS PASSWD
...
...
bye
Be sure what USERS has ftp authorization.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2000 04:15 AM
10-20-2000 04:15 AM
Re: FTP within a script
# ftp to NT server to get the report
#
(
echo "open 000.000.000.000"
echo "user anonymous from_script"
echo "ascii"
echo "get checkfab.txt"
echo"bye"
) | ftp -i -n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2000 06:12 AM
10-20-2000 06:12 AM
Re: FTP within a script
please, read the man-page. I am getting really sick of those "scripts" trying
to control the ftp session with input redirection...
Create a file "$HOME/.netrc" and put in something like:
machine 1.2.3.4 user fred password secret macdef init
bin
cd /target-dir
lcd /source-dir
prompt
mput *
quit
Attention: there must be an empty line after this paragraph.
Next time your start "ftp" and point it to station "1.2.3.4", it
will start transfering all files from your local directory "/source-dir"
to the directory "/target-dir" on station "1.2.3.4" using binary
transfer.
The macro "init" will be automatically started after logging in
on the target station.
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2000 12:54 PM
10-20-2000 12:54 PM
Re: FTP within a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 01:18 AM
10-23-2000 01:18 AM
Re: FTP within a script
in case you aren't particularily fond of TCL/Expect (like me ;-) but rather are into Perl, there is a nice CPAN module Net::FTP for automating FTP sessions.
But then I guess, you would probably know.
Type "perldoc Net::FTP" to find out if it's installed on your box.
As to the posters with the "Here File" solutions ("<
But as others already mentioned consult the ftp manpage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 08:22 AM
11-03-2000 08:22 AM