I'm relatively new to Linux and networking but I'd really like to do this:
I want to upload a file to my googlecode repository using svn every time I connect to a wireless network. I'm trying to find a way to do this with svn, so here is what I've done:
I found that the script /etc/network/if-up.d/upstart appears to execute every time I connect wirelessly, or therefore every time my IP address changes. I added this line to the end of this script:
svn commit /path/to/my/file --message ['my update message'] --username ['my username'] --password ['my password']
The reason I'm asking this question is because this command did not update the repository with the latest information saved in my file. So I would like to ask:
1) Is this method making any experts out there cringe and want to weep because I used sudo to modify contents of my /etc folder?
2) Is there a better way to automate the svn command? Or is there just a keyword that I'm missing because I assumed I could use Linux command-line versions of commands in networking scripts?
3) Is there a better command than svn to use?
Thanks, and please let me know if I need to be more specific.