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?
Sounds like a job for cron. Execute crontab, and add an entry like so:
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 sufficient privileges to do so, run
Then add an entry like so:
You can ignore the part above the edit, unless your server doesn’t allow you to use cron.