nullByteMe
nullByteMe

Reputation: 6391

How can I programmatically send a blank password?

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

Answers (2)

dannrob
dannrob

Reputation: 1069

Try specifying password using the following option:

--password ''

Upvotes: 5

Rob
Rob

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

Related Questions