[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

using PSexec to remotely run svnserver

From: yary <not.com_at_gmail.com>
Date: Tue, 23 Mar 2010 10:40:55 -0700

Hello,

I'm using Subversion in a windows shop. We have a FSFS repository that
we're accessing via XP's filesharing (file: URLs with UNC paths).
Company policy won't allow us to install ssh/sshd, or to run any new
services such as apache or svnserver as a deamon.

We have PSexec installed on our svn clients, and as we already trust
our windows authentication & security setup, I was thinking we could
use that as a sort-of "rsh" replacement. The thing is, every variation
I try hangs.

psexec prints a banner to STDERR which I can't turn off. I can
redirect it to NUL.

psexec also seems to buffer its output. I'm not sure about that. What
I do know is that wrapping it up in a batch script fails.

Here are some test runs:
> psexec \\reposerve svnserve -t 2>NUL
( success ( 2 2 ( ) ( edit-pipeline svndiff1 absent-entries commit-revprops dept
h log-revprops partial-replay ) ) )

that looks good!

On the other hand a batch file that says:
c:\DOCUME~1\ALLUSE~1\DOCUME~1\PStools\psexec.exe -e \\%* 2>NUL
and setting %SVN_SSH% to point to the batch file-
> svn list svn+ssh://reposerve/D/repository/trunk
(hangs) - I would expect an error or success, instead it just hangs,
psexec keeps running but no input/output

If anyone has had success running subversion's server via PSexec,
please share your recipe!

thanks
-y
Received on 2010-03-23 18:41:25 CET

This is an archived mail posted to the Subversion Users mailing list.