Возможно с помощью expect, но дело в том что ЧекАут делает SVN клиент, можно ли начать сессию svn-клиентом, а авторизоваться уже с помощью еxpect ? Либо другим способом, помогите пожалуйста кто может.
Код: Выделить всё
# svn co /test.svn.com/trunk
$ svn co https://subversion.test.com/svn/installtest/trunk
Authentication realm: <https://subversion.test.com:443> Test Restricted Area
Password for 'user':
Authentication realm: <https://subversion.test.com:443>Test Restricted Area
Username: test
Password for 'test':
-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:
<https://subversion.test.com:443> test Restricted Area
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/user/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
A trunk/index.html
Checked out revision 2.После запроса с консоли:
svn co https://subversion.test.com/svn/installtest/trunk
прямо в консоль приходит запрос авторизации
Вводится имя
Вводится пароль
Соглашаемся с не шифорованным паролем
ЧекАут закончен
