# “svn update” on a remote machine

I need an ability to run "svn update" on a remote machine for a non-technical user, how would I go about it?

Our non-techincal users are using Windows XP and have Tortoise SVN client installed.

I'm thinking to do following but I'm not really in a favor for either so far...

• Batch (that runs locally on Windows)
• Shell (runs on a remote machine requires SSH access/client)
• CGI (that runs on a remote machine via web)
-
Are the users so non-technical that they're unable to right-click on the folder and do an SVN update themselves using TortoiseSVN's context menus? –  EEAA Jun 13 '11 at 21:42
svn update needs to happen on a remote machine not on their local workstations –  alexus Jun 14 '11 at 14:16

anyways, so what I end up doing is running CGI, so now they can hit that cgi that runs update

-
Whilst it's great that you have an answer to your problem, it would be better if you could elaborate on your solution so that others can benefit. –  Greg Woods Sep 26 '12 at 8:17

If the remote machine is also running Windows and your users have privileges on the remote machine, I'd recommend giving PsExec a look. Your command on the local machine would look something like:

psexec \\remotemachine -w C:\directory\on\remote\to\run\svnupdate\in svn update


You can specify a username and password with the -u and -p options, respectively.

svn.exe needs to be in the remote machine's PATH otherwise you have to specify its full path on the command line as well.

Wrap that line up in a .cmd file on your non-technical users' desktops and they just double click it to execute svn update on the remote machine.

-
remote machine is running Linux –  alexus Jun 30 '11 at 14:09