The UNIX and Linux Forums  

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 here.

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
SFTP help bsandeep_80 SUN Solaris 1 07-30-2007 08:49 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

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

Join Date: Jul 2007
Posts: 99
Stumble this Post!
help in SFTP please 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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-30-2007
Registered User
 

Join Date: Jul 2007
Posts: 99
Stumble this Post!
can anyone help me out please..... will be grate full....
Reply With Quote
  #3 (permalink)  
Old 07-30-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Stumble this Post!
Maybe you should read the rules first, bumping up your post is not allowed, nor is cross posting.
Reply With Quote
  #4 (permalink)  
Old 08-01-2007
Registered User
 

Join Date: Jul 2007
Posts: 99
Stumble this Post!
Thanks for ur suggestions....
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:54 AM.


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