LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   SVN in shell scripts - automating passwords (http://www.linuxquestions.org/questions/linux-software-2/svn-in-shell-scripts-automating-passwords-905468/)

Bfkhiya 09-28-2011 02:34 PM

SVN in shell scripts - automating passwords
 
Hello,

I'm relatively new to Linux and networking but I'd really like to do this:

I want to commit the changes in a text file ("my.file") to a googlecode repository every time I run the script. In the command line, I type:

svn commit /path/to/my.file --message ['my update message']

Then, I enter my GNOME keyring password, my googlecode username, and my googlecode password. This works just fine, and I only have to enter my GNOME keyring password the first time I use svn commit after I've turned on the computer, then I am not prompted to enter that password anymore.

The question I need answered is then: How do I write an svn command in a script such that it enters my gnome keyring password when required? I can and have tried:

svn commit /path/to/my/file --message ['my update message'] --username ['myGoogleCodeUsername'] --password['myGoogleCodePassword']

which, if my keyring password had previously been entered, works just fine from the command line. It just doesn't work in the script that I wrote.

Any suggestions? If I should explain more or more clearly, please let me know.

Thanks,
Khiya

corp769 09-29-2011 11:26 PM

Hello,

I have come across the following two links for you:
http://kparal.wordpress.com/2009/09/...gnome-keyring/
http://superuser.com/questions/14103...emon-without-x
Let me know if one of these helps with your issue.

Cheers,

Josh

Bfkhiya 09-30-2011 09:04 AM

Thanks again, Josh. These are helpful!
-Khiya

corp769 10-01-2011 09:41 AM

Not a problem. Let me know if you have solved your issue or not.


All times are GMT -5. The time now is 08:53 AM.