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
Split the access.log based on date ysprathap Shell Programming and Scripting 4 10-10-2008 06:39 AM
Delete File Based On Date adzuanamir UNIX for Advanced & Expert Users 3 07-30-2008 06:06 PM
Count of files based on date? sbasetty Shell Programming and Scripting 6 01-11-2007 03:02 PM
File management based on date created Geehog_Rare UNIX for Dummies Questions & Answers 1 01-30-2006 04:38 AM
Remove files based on date hshapiro UNIX for Dummies Questions & Answers 4 12-09-2005 12:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2008
ravi214u ravi214u is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 19
mget based on date

i want to copy files from one server to another based on particular date using mget command . any help

thanks.
  #2 (permalink)  
Old 11-20-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
In ftp try 'ls -l' to see if the host returns date information first.
If it does try this -
Code:
echo "
open myhost
username password
cd /somewhere
ls -l
bye
" | ftp -n > listfile
Next grep for the date you want in list file, then create another here document to ftp over to the host and get the files you want. mget does not do filetimes on the remote host.
Sponsored Links
Closed Thread

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 01:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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