LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-28-2011, 02:34 PM   #1
Bfkhiya
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Rep: Reputation: Disabled
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
 
Old 09-29-2011, 11:26 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
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
 
Old 09-30-2011, 09:04 AM   #3
Bfkhiya
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks again, Josh. These are helpful!
-Khiya
 
Old 10-01-2011, 09:41 AM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Not a problem. Let me know if you have solved your issue or not.
 
  


Reply

Tags
gnome, keyring, password, repository, svn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to set up subversion with gnome-keyring to store encrypted svn passwords kenneho Linux - Server 4 02-11-2011 03:51 AM
crypt() perl function to encrypt Password in shell scripts or How Encrypt passwords ? balakrishnay Linux - General 13 01-14-2010 09:35 AM
passwords in shell scripts djcham Linux - Software 4 10-04-2005 01:57 AM
Automating Bittorrent with shell scripts kyosuke Linux - General 4 07-01-2005 10:14 AM
automating using shell scripting LinToWinWin Linux - Newbie 1 07-23-2004 09:57 PM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration