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 > Contact Us (Meet Our Management Team) > Post Here to Contact Site Administrators and Moderators
.
google unix.com



Post Here to Contact Site Administrators and Moderators Registered Users make ask questions and suggestions about forums, features, or content here. Get forum support here, not via email!!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how can i pick the latest log file as per below mail2sant Shell Programming and Scripting 4 04-05-2009 01:14 AM
get latest file inquirer Shell Programming and Scripting 4 04-02-2009 11:15 AM
ftp command to get latest file laiko UNIX for Dummies Questions & Answers 2 05-14-2008 06:10 AM
Getting latest file from ftp arunavlp UNIX for Dummies Questions & Answers 3 02-08-2008 10:19 AM
want to cat the latest log file created vkandati UNIX for Dummies Questions & Answers 1 03-08-2005 06:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-25-2006
alx alx is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 9
get latest file via ftp command

Hi,

The task that I need to do is connect from Unix box to Windows server and get the latest *.txt file (there might be several files in a directory on Windows server). From what I understand ftp does not allow to pass "ls -lt" and therefore I am unable to determine which file is the latest and therefore the one I need to get.
Another option is to bring all *.txt files from Windows into Unix box - but this way the files loose their time stamp and I am still unable to determine which file is the latest.
Any help will be greatly appreciated
  #2 (permalink)  
Old 01-26-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Since I don't have a Windows system running ftp, I can't check this but normally, ftp has two commands to show a directory and files, dir and ls.

ls will show just files.

dir will show files with timestamps. A quick test shows that it is the modified timestamp - maybe this will help.
  #3 (permalink)  
Old 01-26-2006
alx alx is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 9
Thank you very much
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 09:30 PM.


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