Reputation: 6391
I have a shell script that checks out a subversion repo. The connection asks for a password (I know it's an unnecessary layer since the password is blank), but how can I send a blank password to subversion?
#!/bin/sh
svn co svn://server/repo ~/Desktop/data
This then sends a password prompt to the terminal, is there a way to automatically respond in my script with a blank password?
Upvotes: 3
Views: 604
Reputation: 11788
I really don't recommend doing it like that, but a more generic way would be the use of expect:
How to give password in shell script?
Upvotes: 1