The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sftp melanie_pfefer SUN Solaris 1 03-19-2008 12:00 PM
sftp RahJiggah OS X (Apple) 3 09-26-2007 06:13 AM
help in SFTP please help bsandeep_80 Shell Programming and Scripting 3 08-01-2007 11:33 AM
Using SFTP FredSmith UNIX for Dummies Questions & Answers 4 08-14-2006 03:52 AM
sftp hugow UNIX for Dummies Questions & Answers 2 08-01-2006 04:23 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2007
Registered User
 

Join Date: Jul 2007
Posts: 96
SFTP help

HI All,

I am trying to figure out a thing in solaris . The basic requirement is as follows:

I will need to login from my solaris server (which should be non interactive to a cleint server )which has only Sftp option. i have generated the required keys and able to do the same. I am using the below command to accomplise the same :

sftp -b batchfile username@hostname

I am able to login non interactively to the client server. In the batch file i have specified some command like this for example:

cd somefilder/some sub directory
ls -l some folder
bye


The real trouble starts here. Now what i would to accomplise is :
once i am into the sftp server

The file is called data-sandeep<date stamp>.xml with latest date ( under somefilder/some sub directory) on the machine(sftp machine) needs to be transferred to my solaris server to a folder that I have created called “File_transfer_data” .

There are 20 such files in this folder like:

data-sandeep-01011900.xml
data-sandeep-01011901.xml
data-sandeep-01011902.xml


Which have a differant time stamps. I need to get a file with lastest time stamp.

The problem is i cannot use unix commands here.

Does any one know how this can be accomplised.

Will be grateful
Forum Sponsor
  #2 (permalink)  
Old 07-30-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,497
This duplicate thread is closed.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0