- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Transfer file for system A to system B using ftp
Operating System - Linux
1753789
Members
7310
Online
108799
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
Discussions
Discussions
Forums
Discussions
back
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
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
04-10-2007 01:23 AM
04-10-2007 01:23 AM
Transfer file for system A to system B using ftp
Hi all,
I have some questions if someone has time to answer. On sistem A using
ls -ltr | tail -1 I can find most recent file that is uploaded by other machines.
Now I need to transfer this file to another system ( windows ), say B.
I can do it using this:
ftp mmm.mmm.mmm.mmm
prompting me for user name and pass and I am there, and then
put file_name
but I do not know how do it using put from system B.
I need to tell system to transfer most recent file from system A to system B, using ftp. I can find most recent file and it is not problem.
Any help is welcome.
Best wishes and regards
I have some questions if someone has time to answer. On sistem A using
ls -ltr | tail -1 I can find most recent file that is uploaded by other machines.
Now I need to transfer this file to another system ( windows ), say B.
I can do it using this:
ftp mmm.mmm.mmm.mmm
prompting me for user name and pass and I am there, and then
put file_name
but I do not know how do it using put from system B.
I need to tell system to transfer most recent file from system A to system B, using ftp. I can find most recent file and it is not problem.
Any help is welcome.
Best wishes and regards
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 02:38 AM
04-10-2007 02:38 AM
Re: Transfer file for system A to system B using ftp
Ok,not a big deal as far as I see it. Use bash script to do the job,mark most recent file as $RECENT. And...
#!/bin/bash
$HOSTB=.... # host B IP
$RECENT=$(ls -ltr|tail -1|awk '{print $9}')
ftp<<**
#put here your ftp commands
open $HOSTB
put $RECENT
bye
**
Echo "Ftp transfer to $HOSTB of file: $RECENT was OK"
#!/bin/bash
$HOSTB=.... # host B IP
$RECENT=$(ls -ltr|tail -1|awk '{print $9}')
ftp<<**
#put here your ftp commands
open $HOSTB
put $RECENT
bye
**
Echo "Ftp transfer to $HOSTB of file: $RECENT was OK"
So computers don't think yet. At least not chess computers. - Seymour Cray
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP