Auth failed running command from shell script

Posted by CSchulz on Super User See other posts from Super User or by CSchulz
Published on 2011-08-25T06:36:41Z Indexed on 2012/12/15 11:09 UTC
Read the original article Hit count: 158

Filed under:
|
|

I try to run following command from shell script:
svn checkout http://url/ --username user --password password --non-interactive --no-auth-cache .

It fails always with following error:

svn: OPTIONS of 'http://url/': authorization failed: Could not authenticate to server: rejected Basic challenge (http://url)

Here the call out of my script:
$(svn $command $url $auth --non-interactive --no-auth-cache .)

Running the same command from the terminal works fine.
What is the difference between running from shell script and terminal?

EDIT:
Here some version information:

  • OS: Porteus 1.0 based on Slackware 13.3
  • Subversion: subversion-1.6.16-i486-1

© Super User or respective owner

Related posts about svn

Related posts about shell-script