![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sftp | melanie_pfefer | SUN Solaris | 1 | 03-19-2008 01: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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
can anyone help me out please..... will be grate full....
|
|
#3
|
||||
|
||||
|
Maybe you should read the rules first, bumping up your post is not allowed, nor is cross posting.
|
|
#4
|
|||
|
|||
|
Thanks for ur suggestions....
|
|||
| Google The UNIX and Linux Forums |