Auth failed running command from shell scriptShell script to get the response from serverSVN command line...
How to find program name(s) of an installed package?
What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
Can I make popcorn with any corn?
Watching something be written to a file live with tail
Can I ask the recruiters in my resume to put the reason why I am rejected?
Modeling an IPv4 Address
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Can a Warlock become Neutral Good?
What is the offset in a seaplane's hull?
Which models of the Boeing 737 are still in production?
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
Why not use SQL instead of GraphQL?
Is it legal for company to use my work email to pretend I still work there?
Approximately how much travel time was saved by the opening of the Suez Canal in 1869?
Why Is Death Allowed In the Matrix?
Writing rule stating superpower from different root cause is bad writing
Why do I get two different answers for this counting problem?
Risk of getting Chronic Wasting Disease (CWD) in the United States?
What would happen to a modern skyscraper if it rains micro blackholes?
How old can references or sources in a thesis be?
What's the point of deactivating Num Lock on login screens?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
Auth failed running command from shell script
Shell script to get the response from serverSVN command line client: checkout refused when LDAP password changed “svn: OPTIONS of” (repo) “authorization failed” (but works in TortoiseSVN)Return last command executed in shell-scriptCommand not executing inside shell script?Shell script detecting errors from command called by scriptWindows 2012 VisualSVN cannot be connected to by Linux Subversion ClientShell script not running with cronjobExecuting Perl command from shell script not resulting into anythingSVN Ignore certificate issued for a different hostname on CentOsRunning functions that were declared outside my shell script
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
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
svn shell-script authentication
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 3 more comments
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
svn shell-script authentication
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Are there characters such as&in the URL? You should quote it with single quote'character.
– Keith
Aug 25 '11 at 6:51
No nothing like that. The single quote lead into svn: '$url' does not appear to be a URL.
– CSchulz
Aug 25 '11 at 7:02
Oh... it's a variable. Try double quotes"then. Your question isn't telling us everything...
– Keith
Aug 25 '11 at 7:23
Makes no difference I had tried it. ;)
– CSchulz
Aug 25 '11 at 7:26
Well, show us yer codez then. ;-)
– Keith
Aug 25 '11 at 7:27
|
show 3 more comments
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
svn shell-script authentication
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
svn shell-script authentication
svn shell-script authentication
edited Aug 26 '11 at 8:25
CSchulz
asked Aug 25 '11 at 6:36
CSchulzCSchulz
184417
184417
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Are there characters such as&in the URL? You should quote it with single quote'character.
– Keith
Aug 25 '11 at 6:51
No nothing like that. The single quote lead into svn: '$url' does not appear to be a URL.
– CSchulz
Aug 25 '11 at 7:02
Oh... it's a variable. Try double quotes"then. Your question isn't telling us everything...
– Keith
Aug 25 '11 at 7:23
Makes no difference I had tried it. ;)
– CSchulz
Aug 25 '11 at 7:26
Well, show us yer codez then. ;-)
– Keith
Aug 25 '11 at 7:27
|
show 3 more comments
Are there characters such as&in the URL? You should quote it with single quote'character.
– Keith
Aug 25 '11 at 6:51
No nothing like that. The single quote lead into svn: '$url' does not appear to be a URL.
– CSchulz
Aug 25 '11 at 7:02
Oh... it's a variable. Try double quotes"then. Your question isn't telling us everything...
– Keith
Aug 25 '11 at 7:23
Makes no difference I had tried it. ;)
– CSchulz
Aug 25 '11 at 7:26
Well, show us yer codez then. ;-)
– Keith
Aug 25 '11 at 7:27
Are there characters such as
& in the URL? You should quote it with single quote ' character.– Keith
Aug 25 '11 at 6:51
Are there characters such as
& in the URL? You should quote it with single quote ' character.– Keith
Aug 25 '11 at 6:51
No nothing like that. The single quote lead into svn: '$url' does not appear to be a URL.
– CSchulz
Aug 25 '11 at 7:02
No nothing like that. The single quote lead into svn: '$url' does not appear to be a URL.
– CSchulz
Aug 25 '11 at 7:02
Oh... it's a variable. Try double quotes
" then. Your question isn't telling us everything...– Keith
Aug 25 '11 at 7:23
Oh... it's a variable. Try double quotes
" then. Your question isn't telling us everything...– Keith
Aug 25 '11 at 7:23
Makes no difference I had tried it. ;)
– CSchulz
Aug 25 '11 at 7:26
Makes no difference I had tried it. ;)
– CSchulz
Aug 25 '11 at 7:26
Well, show us yer codez then. ;-)
– Keith
Aug 25 '11 at 7:27
Well, show us yer codez then. ;-)
– Keith
Aug 25 '11 at 7:27
|
show 3 more comments
1 Answer
1
active
oldest
votes
Check you are using the same svn binary in each case:
echo $PATH
which svn
And these lines before your svn call in the script and when you try it manually.
EDIT:
Maybe it's proxies. I guess show us the env output?
Both outputs are the same.
– CSchulz
Aug 25 '11 at 8:17
Yes I used the env varible http_proxy, but it doesn't matters because firstly it appears in both environments and secondly the webserver is in the same network and so the proxy isn't needed. Please write the next time a comment because I haven't seen your edit.
– CSchulz
Aug 26 '11 at 10:32
@H3llGhost - sorry I thought my edited answer would pop up for you.
– Douglas Leeder
Aug 26 '11 at 18:31
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f327823%2fauth-failed-running-command-from-shell-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check you are using the same svn binary in each case:
echo $PATH
which svn
And these lines before your svn call in the script and when you try it manually.
EDIT:
Maybe it's proxies. I guess show us the env output?
Both outputs are the same.
– CSchulz
Aug 25 '11 at 8:17
Yes I used the env varible http_proxy, but it doesn't matters because firstly it appears in both environments and secondly the webserver is in the same network and so the proxy isn't needed. Please write the next time a comment because I haven't seen your edit.
– CSchulz
Aug 26 '11 at 10:32
@H3llGhost - sorry I thought my edited answer would pop up for you.
– Douglas Leeder
Aug 26 '11 at 18:31
add a comment |
Check you are using the same svn binary in each case:
echo $PATH
which svn
And these lines before your svn call in the script and when you try it manually.
EDIT:
Maybe it's proxies. I guess show us the env output?
Both outputs are the same.
– CSchulz
Aug 25 '11 at 8:17
Yes I used the env varible http_proxy, but it doesn't matters because firstly it appears in both environments and secondly the webserver is in the same network and so the proxy isn't needed. Please write the next time a comment because I haven't seen your edit.
– CSchulz
Aug 26 '11 at 10:32
@H3llGhost - sorry I thought my edited answer would pop up for you.
– Douglas Leeder
Aug 26 '11 at 18:31
add a comment |
Check you are using the same svn binary in each case:
echo $PATH
which svn
And these lines before your svn call in the script and when you try it manually.
EDIT:
Maybe it's proxies. I guess show us the env output?
Check you are using the same svn binary in each case:
echo $PATH
which svn
And these lines before your svn call in the script and when you try it manually.
EDIT:
Maybe it's proxies. I guess show us the env output?
edited Aug 25 '11 at 13:02
answered Aug 25 '11 at 7:35
Douglas LeederDouglas Leeder
1,305710
1,305710
Both outputs are the same.
– CSchulz
Aug 25 '11 at 8:17
Yes I used the env varible http_proxy, but it doesn't matters because firstly it appears in both environments and secondly the webserver is in the same network and so the proxy isn't needed. Please write the next time a comment because I haven't seen your edit.
– CSchulz
Aug 26 '11 at 10:32
@H3llGhost - sorry I thought my edited answer would pop up for you.
– Douglas Leeder
Aug 26 '11 at 18:31
add a comment |
Both outputs are the same.
– CSchulz
Aug 25 '11 at 8:17
Yes I used the env varible http_proxy, but it doesn't matters because firstly it appears in both environments and secondly the webserver is in the same network and so the proxy isn't needed. Please write the next time a comment because I haven't seen your edit.
– CSchulz
Aug 26 '11 at 10:32
@H3llGhost - sorry I thought my edited answer would pop up for you.
– Douglas Leeder
Aug 26 '11 at 18:31
Both outputs are the same.
– CSchulz
Aug 25 '11 at 8:17
Both outputs are the same.
– CSchulz
Aug 25 '11 at 8:17
Yes I used the env varible http_proxy, but it doesn't matters because firstly it appears in both environments and secondly the webserver is in the same network and so the proxy isn't needed. Please write the next time a comment because I haven't seen your edit.
– CSchulz
Aug 26 '11 at 10:32
Yes I used the env varible http_proxy, but it doesn't matters because firstly it appears in both environments and secondly the webserver is in the same network and so the proxy isn't needed. Please write the next time a comment because I haven't seen your edit.
– CSchulz
Aug 26 '11 at 10:32
@H3llGhost - sorry I thought my edited answer would pop up for you.
– Douglas Leeder
Aug 26 '11 at 18:31
@H3llGhost - sorry I thought my edited answer would pop up for you.
– Douglas Leeder
Aug 26 '11 at 18:31
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f327823%2fauth-failed-running-command-from-shell-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are there characters such as
&in the URL? You should quote it with single quote'character.– Keith
Aug 25 '11 at 6:51
No nothing like that. The single quote lead into svn: '$url' does not appear to be a URL.
– CSchulz
Aug 25 '11 at 7:02
Oh... it's a variable. Try double quotes
"then. Your question isn't telling us everything...– Keith
Aug 25 '11 at 7:23
Makes no difference I had tried it. ;)
– CSchulz
Aug 25 '11 at 7:26
Well, show us yer codez then. ;-)
– Keith
Aug 25 '11 at 7:27