- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Automation of FTP (to James Ferguson & the res...
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
Discussions
Discussions
Forums
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
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
тАО01-16-2001 02:59 AM
тАО01-16-2001 02:59 AM
I've read your answer & the answer's of our collegae about how to configure Auto. FTP but I need your help;
Mijn question is that:
I would like to transfer files through FTP from one server in our company to another server in another company, what did I do as following:
suppose I 've serverA ( at my company), server B (at the other company)
1-I created a user call John (on my server), who is gonig to log in from the other server to get files through ftp.
2-I created a file .netrc in which I put the following
(IP) 1.2.3.4
(login) John
(password) al5678
macdef init
cd /target_dir (for example /tmp on the other server)
lcd /source_dir (for example /tmp/John on my server
promt
mget*
quit
**********************************
I tried many times from the other company server to FTP with John, I did'nt get nothing,
once I moved .netrc onder /home, once onder /home/John. Noway.
- Do I miss somethig?
- If so would you like kindly to explain this to me?
Thanks alot
Hamdy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2001 03:38 AM
тАО01-16-2001 03:38 AM
Re: Automation of FTP (to James Ferguson & the rest of Collegae)
codeword not the (IP)
The example netrc file:
machine venus login anonymous@123.17.57.66 password root@ macdef init
open 123.17.57.66
bin
lcd /oracle7/fixdist/fddb
get /x/fixes/v4/xx.tar tar.Z
quit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2001 06:10 AM
тАО01-16-2001 06:10 AM
SolutionBased on you example, your .netrc file should look like this:
------
machine 1.2.3.4
login john
password al5678
macdef init
cd /target_dir
lcd /source_dir
prompt
mget*
quit
------
Note carefully the zero-length line after the 'quit' in the 'init' macro.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2001 06:33 AM
тАО01-16-2001 06:33 AM
Re: Automation of FTP (to James Ferguson & the rest of Collegae)
James what you mean with your (Note carefully the zero-length line after the 'quit' in the 'init' macro)?.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2001 07:12 AM
тАО01-16-2001 07:12 AM
Re: Automation of FTP (to James Ferguson & the rest of Collegae)
By a "zero-length" line I mean "an empty line (consecutive newline characters)".
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2001 12:52 PM
тАО01-16-2001 12:52 PM
Re: Automation of FTP (to James Ferguson & the rest of Collegae)
Thanks alot for your suggestion.
everything is running wel.
Have anice day
Hamdy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2001 03:22 AM
тАО01-17-2001 03:22 AM
Re: Automation of FTP (to James Ferguson & the rest of Collegae)
:transfer.sh
#
ftp -n<<+++
open 1.2.3.4
user John al5678
cd /target_dir
lcd /source_dir
prompt
mget*
quit
+++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2001 06:46 AM
тАО01-17-2001 06:46 AM
Re: Automation of FTP (to James Ferguson & the rest of Collegae)
%ftp -n 11.11.11.11
password typepassword
bin
get /remotedir/file /localdir/file
bye
This file will always run then you can just change the files you need. Run the above script fromt he machine where you want the file to go or change the get to put.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2001 08:55 AM
тАО01-18-2001 08:55 AM
Re: Automation of FTP (to James Ferguson & the rest of Collegae)
The easiest way to test a netrc file is to su - user, and ftp to the host defined in the .netrc file. If all is good, it should echo all things done in the .netrc init macro. :) Easy to test!
Regards,
Shannon