FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 28th, 2011, 02:07 AM
ksssp ksssp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2011
Posts: 3 ksssp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 21 sec
Reputation Power: 0
REST Command Equivalent for SFTP (SSH-FTP)

Hi,

I have 2 doubts regarding FTP and SFTP.

1. I need to download only a certain part of a file located on an ftp source.. i.e. about the last 200 bytes. I was able to use the "REST <location>" to start download from <location> point to the end of the file. But, SSH-FTP or SFTP does not support the REST command. Is there an alternative to REST in SFTP? My basic task is to download a file from an offset of my choice.

2. I need only a limited amount of data from the file, i.e. about 50 bytes from the 200th byte of the file. I could start download from 200th byte using REST, but, am unable to find a mechanism by which I can download only the necessary content by specifying its size.

Thanks in advance.

Reply With Quote
  #2  
Old October 31st, 2011, 02:18 AM
ksssp ksssp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2011
Posts: 3 ksssp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 21 sec
Reputation Power: 0
REST Command Equivalent for SFTP (SSH-FTP)

Hey,

Can somebody help me out.. This is real urgent and has been delaying my work for long.

Waiting for some response in anticipation.

Reply With Quote
  #3  
Old October 31st, 2011, 10:42 PM
DonR DonR is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 494 DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 29722 Folding Title: Starter FolderFolding Points: 29722 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 2 Days 19 h 55 m 31 sec
Reputation Power: 216
check out cUrl and its range option. http://curl.haxx.se/docs/manpage.html

Reply With Quote
  #4  
Old November 1st, 2011, 01:06 AM
ksssp ksssp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2011
Posts: 3 ksssp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 21 sec
Reputation Power: 0
Quote:
Originally Posted by DonR
check out cUrl and its range option.


Thank you DonR. I've already seen that.. but I need to connect and download from the ftp using my JAVA code, and it needs to be cross platform. Do you know of any command sequence or procedure to implement using some java compatible library?

Reply With Quote
  #5  
Old November 2nd, 2011, 12:36 AM
DonR DonR is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 494 DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 29722 Folding Title: Starter FolderFolding Points: 29722 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 2 Days 19 h 55 m 31 sec
Reputation Power: 216
sorry, but, I know nothing about JAVA

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > REST Command Equivalent for SFTP (SSH-FTP)

Developer Shed Advertisers and Affiliates



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap