addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

Re: [how-to-javascript] Remote file access and download via a script routine

From: Milan
Sent on: Monday, June 18, 2012, 1:30 PM
Hi Nick,

Since you will need to zip it together on the server-side anyway you will need to have this be a back-end solution.

The next questions would be:  how are the servers connected?  Are they three separate servers?  Any type of NFS, cloud, sshfs, etc?  What protocols can you access the files through (e.g. HTTP, FTP, SSH, etc)?  Are the files combinations predictable (for caching to minimize re-zipping)?

If you have SSH access to S3 you would be best to zip if on there and hand off the destination URL from S3 directly to the front-end as not minimize inter-server traffic (that is not to say you cannot obfuscate the URL via mod_rewrite or a proxy to give the illusion of coming from S1 let's say).

In other words, depending on the setup of these servers will dictate the best solution to achieve this task :)

Milan Adamovsky
Founder and Organizer of the following great tech communities:




On Mon, Jun 18, 2012 at 1:19 PM, Nickalf..... <[address removed]> wrote:
   Hi Fellow Hackers,
                 Looking for some guidance on configuring a project.

        There are three Servers involved: S1, S2 and S3
    The browser viewable user interface is in 9 pages on S1
    When they click their choice(s) they are taken to S2 (running
    Perl scripts on Ubuntu), asked to enter who they are and make a
    couple more choices and then the files they request, which will
    be located on S3 will be zipped together and made available to
    download. (don't ask - that's how the client really wants it.)

        What's the best way to do it or gather those files - I'm
    thinking to use wget ?

        Any suggestions (preferably not rude ones ;) accepted)..

                                               Thanks,
                                                       Nick the Brit
                                                       MU/Webcasting
--
   _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
                          .  .  .  .  .  .  .  .
     Please join my Tech group that meets in the local metro area
   Webcasting and Video Streaming Network:  http://TheWebcasting.net
                          .  .  .  .  .  .  .  .
    Have a video made for your Website, set up a Webinar, or have a
    full blown show to Webcast LIVE. We can help http://VidiNik.com
                          .  .  .  .  .  .  .  .
   Take payments or subscriptions on your Website without the high
   setup & monthly fees of a Merchant Account  http://ChargeIt.org
                          .  .  .  .  .  .  .  .
   ChargeIt offers a unique & brandable Community Theatre BoxOffice
      See our Demo at http://BoxOffice.ws/ShowIt.pl?BoxOffice
                          .  .  .  .  .  .  .  .
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
http://www.meetup.com/how-to-javascript/
This message was sent by Nickalf..... ([address removed]) from How To Javascript (+HTML+CSS).
To learn more about Nickalf....., visit his/her member profile: http://www.meetup.com/how-to-javascript/members/11192463/
Set my mailing list to email me

As they are sent
http://www.meetup.com/how-to-javascript/list_prefs/?pref=1

In one daily email
http://www.meetup.com/how-to-javascript/list_prefs/?pref=2

Don't send me mailing list messages
http://www.meetup.com/how-to-javascript/list_prefs/?pref=0
Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--

Milan Adamovsky
- JavaScript Performance Architect
(862)[masked] - Connect with me - Join the largest jQuery NYC group - Subscribe

"If you want something you've never had, do something you've never done" -- unknown

People in this
group are also in: