HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: rcp files
Operating System - Tru64 Unix
1827841
Members
1842
Online
109969
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
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
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
02-10-2006 07:11 AM
02-10-2006 07:11 AM
rcp files
Hi there I am trying to rcp the last modified file with the .dat extension to another server. I have written this but it is sending all files across. Can someone help, please?
find /tmp/ -name "*.dat" -mtime +1 -exec rcp {} 10.1.10.30:/disk3/sx3/RIFACE/ \;
find /tmp/ -name "*.dat" -mtime +1 -exec rcp {} 10.1.10.30:/disk3/sx3/RIFACE/ \;
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 09:14 AM
02-10-2006 09:14 AM
Re: rcp files
The find -mtime +1 will find all files with a modification date > one day. That is not what you need.
You should use something like this:
rcp `ls -latr |tail -1 | awk '{print $9}'` 10.1.10.30:/disk3/sx3/RIFACE/
Check that the quotation mark is inverted. If you can't find the quotation mark, use:
rcp $(ls -latr |tail -1 | awk '{print $9}') 10.1.10.30:/disk3/sx3/RIFACE/
This is called shell nesting or shell substitution.
You should use something like this:
rcp `ls -latr |tail -1 | awk '{print $9}'` 10.1.10.30:/disk3/sx3/RIFACE/
Check that the quotation mark is inverted. If you can't find the quotation mark, use:
rcp $(ls -latr |tail -1 | awk '{print $9}') 10.1.10.30:/disk3/sx3/RIFACE/
This is called shell nesting or shell substitution.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 09:17 AM
02-10-2006 09:17 AM
Re: rcp files
Arnold
It should be
-mtime 1 or mtime -1
instead of
-mtime +1
Joris
It should be
-mtime 1 or mtime -1
instead of
-mtime +1
Joris
To err is human, but to really faul things up requires a computer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 06:00 PM
02-13-2006 06:00 PM
Re: rcp files
Use this,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=995165
to get recent updated file.
--
Muthu
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=995165
to get recent updated file.
--
Muthu
Easy to suggest when don't know about the problem!
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP