[plt-scheme] Re: Remove File Operations
On Sat, May 2, 2009 at 12:36 AM, Eli Barzilay <eli at barzilay.org> wrote:
> On May 2, Paulo J. Matos wrote:
>> On Fri, May 1, 2009 at 8:29 PM, Eli Barzilay <eli at barzilay.org> wrote:
>> > On May 1, Paulo J. Matos wrote:
>> >> [...]
>> >
>> > Some possibly relevant & random notes:
>> >
>> > * For backups, I found unison to work very well, except that it's
>> > difficult to customize it for different subsets that you want to
>> > synchronize. I wrote a scheme wrapper that deals with that and
>> > that worked fine for me for several years now.
>>
>> I also use unison for synchronisation but for backup I really would
>> like something that compresses the files.
>
> `rsync'? Or do you mean compress the files on the target machine?
>
There's also rdiff-backup, but yes, I want to compress them on the
target machine.
>
>> > * For password issues with ssh, a nice solution would be to write an
>> > interface to sockets (IIRC, there are existing interfaces in
>> > several other implementations with varying degrees of
>> > completeness), but a much easier solution is to use some wrapper
>> > utility. One such thing is `socat' -- you can use it to start a
>> > program like ssh and get back two simple input/output ports.
>>
>> can't understand how would an interface to sockets help, could you
>> please clarify?
>
> It makes it possible to run ssh as a subprocess, and feed it the
> password (that the scheme code will obtain in some way).
>
but can't I do that already using PLT-Scheme, running ssh as a subprocess?
> --
> ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
> http://www.barzilay.org/ Maze is Life!
>
--
Paulo Jorge Matos - pocmatos at gmail.com
Webpage: http://www.personal.soton.ac.uk/pocm