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
problem in making sftp script girish.batra Shell Programming and Scripting 8 01-07-2009 06:28 AM
Problem using sftp Jamil Qadir UNIX for Advanced & Expert Users 1 03-28-2008 11:33 AM
problem with SFTP Krrishv Shell Programming and Scripting 2 03-20-2008 03:12 PM
sftp problem borncrazy Shell Programming and Scripting 2 06-05-2007 12:46 AM
sftp problem sudojo Security 0 08-30-2002 05:37 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 12-12-2007
UBD UBD is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 8
Post sftp problem

Hi I need to perform the following task using shell script.

establishing a sftp connection to a server.
then get the latest file from there to our own server.

But i am not finding ny suitable command in sftp console to get the latest file.
can anyone help me in this reagrd.
if ny other procedure can help please suggest those also.
  #2 (permalink)  
Old 12-12-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
You will need to read the dates of the files and decide yourself which is the latest file.

Alternatively use ssh to run ls remotely to do a sorted listing based on date then retrieve that file.
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 08:31 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