The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find files not accessed on a remote server and delete - Help! bond_bhai Shell Programming and Scripting 1 07-17-2007 06:59 AM
How to list today's files berlin_germany Shell Programming and Scripting 4 11-29-2006 07:50 AM
find files older than 30mins,count and send mail kayarsenal Shell Programming and Scripting 4 09-27-2006 03:11 PM
awk to find the status and send an email isingh786 UNIX for Dummies Questions & Answers 6 12-21-2005 10:12 PM
script for listing files of today's time stamp kid123 Shell Programming and Scripting 2 04-06-2004 09:44 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-12-2006
zinu zinu is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 3
how to find today's files & send to another server?

Hi All,

My script has to find todays modified( less than 24 hrs) files & send it another server using SCP.

what I wrote is

find . -type f -mtime -1 | xargs ls -ltr ## to find today's files, but its giving my sh_history file also, I don’t require this file at all.

scp userid@serverBhostname:/put/here ## to send files to another server.

I found these above two commands ( find & scp) in the net. I don’t know how to customize to solve my problem.

Please let me know how to solve this.
Your help will be greatly appreciated.

Thanks in Advance
Zinu
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0