On Tue, May 8, 2012 at 10:58 AM, Lluís Batlle i Rossell <vi...@viric.name>wrote:
> On Tue, May 08, 2012 at 01:52:04PM -0400, Richard Hipp wrote: > > On Tue, May 8, 2012 at 1:41 PM, Natacha Porté <nata...@instinctive.eu > >wrote: > > > Among relevant differences are at least that `ssh host command` does > not > > > invoke a shell, sshd's fork invokes exec on the command directly, so > > > your `ssh host.com ls` runs /bin/ls instead of a shell's builtin ls. > > > Moreover, by default `ssh host` creates a pty on the remote side, while > > > `ssh host command` provdes `command` with non-pty-ish file descriptors > > > for standard I/O. > > > > I wrote that code 18 months ago and I don't remember the details. (One > > tends to purge bad experiences from ones memory.) But I seem to recall > > that not having a pty caused problems, though I don't remember what those > > problems were. Maybe I'm mistaken, though. Trying again to implement > "ssh > > host command" seems like a worthwhile experiment. (An experiment for > > someone else - I have too many other projects going right this moment.) > > Maybe I had some unrelated mistake in the code that prevented it from > > working on my first attempt. > > fossil uses "ssh -T", which disables pty creation. But it should use "ssh > host > command", for the reasons I exposed in the just sent letter. :) > This is actually what I originally assumed fossil was doing under the hood, i.e. something like "ssh host fossil http". I'd like to experiment with that possibility but is it a dead end? I.e. is there some reason why it will never work? Thanks, Matt -=- Btw now I'm recalling that I also had troubles with fossil over ssh... I'll > try > to remember all the details. > > Regards, > Lluís. > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users