[Unison-hackers] add unison via ssh to a C#.NET project
Derek Rayside
drayside at MIT.EDU
Mon Mar 20 23:13:55 EST 2006
Somebody wrote to this list (or the users list) about this a few months
ago. See if you can find the list archives on that.
If memory serves, the main issue is listening to file system events
efficiently. Running unison in a loop is not the most efficient solution.
I think it's possible to register to listen to file system events, but
I've never done any Windows systems programming.
Unison is written in OCaml. You can probably link it with C# code.
I think there was also some list traffic on compiling unison with a .NET
dialect of ML. Check the archives. Maybe my memory is foggy.
It's probably worth thinking about why you need to write a bunch of C#
code, instead of just a unison profile and/or a simple batch file (which
is what I've done for some friends on Windows). It's not that hard to
just run unison on Windows. I usually spend more time tweaking the
configuration file than the script that runs it.
On Mon, 20 Mar 2006, Cade Thacker wrote:
> Hello all,
> I did a good bit of Google searching for this topic and I did not find
> a lot which lead me to one of two conclusions.
>
> 1) I'm on to something cool that I contribute back
> 2) I'm am looking out at a graveyard of efforts that failed
>
> I hope the answer is #1, but I fear it is #2.
>
> Anyway, on to the question. What I want to do is to build a Window's
> service via Visual Studio 2005 that will run unison over ssh and sync
> peoples home computers to a linux box via ssh. All of my users are
> Windows XP.
>
> So the question is pretty simple. Is this a crazy idea? If this is a
> crazy idea, can you explain so I understand why? Would rsync be a
> better options for this type of project?
>
> As my manager once said to me: "I just don't know what I don't know".
>
> My background is I am a Java/PHP/C# web programmer. I do not have any
> Windows level programming experience, but I want to learn, and am
> pretty stubborn.
>
> Thanks for your responses.
>
> --
>
> --cade
> _______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
>
More information about the Unison-hackers
mailing list