- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automate FTP login
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-31-2002 10:25 PM
10-31-2002 10:25 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2002 10:27 PM
10-31-2002 10:27 PM
Re: Automate FTP login
try the following script.
ftp -i -n -v hostname <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2002 10:31 PM
10-31-2002 10:31 PM
Re: Automate FTP login
try the following script.
ftp -i -n -v hostname <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2002 10:38 PM
10-31-2002 10:38 PM
Re: Automate FTP login
try the following script.
ftp -i -n -v hostname <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 12:04 AM
11-01-2002 12:04 AM
Re: Automate FTP login
If I call this script inside another script, could I pass
the filename as a variable thru the first script.
Tks,
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 12:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 01:18 AM
11-01-2002 01:18 AM
Re: Automate FTP login
I got error when I ran the script.
I've attached two scripts & the result for
you.
Tks,
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 01:45 AM
11-01-2002 01:45 AM
Re: Automate FTP login
try this simple one:
#more test.sh
#!/bin/sh
ftp myserver <
cd /home/yd
mput myfile*
bye
EOF
Hope this helps!
Regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 02:03 AM
11-01-2002 02:03 AM
Re: Automate FTP login
Tks,
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 04:20 AM
11-01-2002 04:20 AM
Re: Automate FTP login
Try "m.sh" with this content:
#!/usr/bin/sh
ftp -niv $1 <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 07:54 AM
11-01-2002 07:54 AM
Re: Automate FTP login
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 09:43 AM
11-01-2002 09:43 AM
Re: Automate FTP login
That's a good idea. Ijust
have the same thinking.
Tks to all of you.
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 09:56 AM
11-01-2002 09:56 AM
Re: Automate FTP login
The big question to ask yourself is "How do I know that my put(s) or get(s) actually worked and that the entire file(s) was transferred intact?" Chances are you don't know and any of these examples don't know either. That's the beauty of Net::FTP; error checking is very simple.
You can download the NET::FTP module from www.perl.com/CPAN
and installation is trivially easy.
To use this in a script, you would do something like this:
ftp.pl file1 file2 file3
STAT=${?}
if [[ ${STAT} -eq 0 ]]
then
echo "All transfers ok"
fi
This will automatically attempt a re-transmit if a file fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 09:37 AM
11-05-2002 09:37 AM
Re: Automate FTP login
man netrc
for details.