Re: more on flushing; Aap: Copied; /usr/bin/scp -C -p
Bram Moolenaar <[email protected]> Sun, 18 Jan 2004 19:57:59 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Richard Boulton wrote:
> Bram Moolenaar wrote:
> > scp takes some time to establish a connection. Currently Aap starts a
> > new scp command for each file, unless it can figure out something to
> > copy multiple files at a time (going to the same directory).
> >
> > I don't know if there is a way to run scp once and somehow make it copy
> > several files. We also need to check failure properly, this this may be
> > a bit complicated.
>
> If you can build up the list of files to be transferred in advance, scp
> allows you to provide it with multiple files to be transferred.
>
> Alternatively, you could look into how fcp (and fsh) work.
> http://www.lysator.liu.se/fsh/
> (I'm not sure if these require support at the other end, though.)
> If fcp is present on a system, aap could default to using this instead
> of scp.
Interestingly, fcp is a Python program. The distribution contains a lot
of things we don't need for Aap. It looks like it would be possible to
use parts of fcp in Aap, to re-use a connection for several commands.
Then close the connection when Aap exits (avoid security issues).
Anybody who is interested into making this work?
--
DEAD PERSON: I'm getting better!
CUSTOMER: No, you're not -- you'll be stone dead in a moment.
MORTICIAN: Oh, I can't take him like that -- it's against regulations.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn