Take the 2-minute tour ×  I'm frequently sshing into a server,
switching to a specific directory and running svn-update  I'm
thinking that there's probably a very easy way to automate this,
so I can simple specific a subdirectory when I run the script
and it'll login via SSH, cd to the right directory and run svn-
update.  Is this a job for capistrano or could a simple bash
script do the job?  share|improve this question It's a job for
make. ssh user@remote 'cd /path/to/project && svn update' – 
LiraNuna Jul 30 '09 at 8:21 Thanks, I've fudged this script a
bit and it'll update when I run ./update-devsite :) –  Tom Jul
30 '09 at 8:54 add comment  3 Answers  up vote 5 down vote
accepted  Sounds like a job for cron. Execute crontab, and add
an entry like so:  #min hour date month day command  0   *    *
*     *   ssh user@host '(cd path/to/working/copy; svn update)'
You may need to set up ssh passwordless authentication with ssh-
agent so that it won't prompt.  EDIT (per comments below):
Assuming you have su