LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

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


Reply

Tags
gnome, keyring, password, repository, svn



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:07 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration