SAP Cloud Connector - Shell Script and

Oct 12, 2016 at 09:35 AM


avatar image
Former Member

Hello Folks,

I am following the steps of the article "Run SAP Cloud Connector on port 443"

Unfortunately, I did not understand the steps 5 and 6.

Do you know the name of the script that starts the scc? Is it daemon.sh or scc_Daemon?

Should I add the command line "[ ! $(grep authbind /opt/sap/scc/daemon.sh) ]] && sed -i ‘s/javaCommandLine=\”/javaCommandLine=\”exec /usr/local/bin/authbind –deep /’ /opt/sap/scc/daemon.sh" anywhere in the script?

What about setting set java.net.preferIPv4Stack, Where is the configuration file located?

Thanks a lot,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Philipp Stehle
Nov 11, 2016 at 07:46 AM

Short answer: No, you don't have to add this line to your script, you have to execute this line once in the terminal. It will automatically add authbind to your startup script if it isn't already added.

Long answer:

I'll explain what the "[[ ! $(grep authbind /opt/sap/scc/daemon.sh) ]] && sed -i ‘s/javaCommandLine=\”/javaCommandLine=\”exec /usr/local/bin/authbind –deep /’ /opt/sap/scc/daemon.sh" does step-by-step (notice: you forgot to copy the first '[' which is important!)

First we split the command into two pices "[[ ! $(grep authbind /opt/sap/scc/daemon.sh) ]]" and "sed -i ‘s/javaCommandLine=\”/javaCommandLine=\”exec /usr/local/bin/authbind –deep /’ /opt/sap/scc/daemon.sh".

The "&&" in between our two parts tells the shell to only execute the later command if the first one runs successfully.

Ok, let's take a look at the first part of the command: "[[" in Linux shell scripts is a command to "check file types and compare values".

The "!" means negate and the "grep" command searches a string in a file. So the first part of the command runs successfully, if grep does not find any occurrence of "authbind" in the file "/opt/sap/scc/daemon.sh".

The second part (which only runs if there is no occurrence of "authbind" in the file "/opt/sap/scc/daemon.sh") of the command substitutes javaCommandLine=" with javaCommandLine=”exec /usr/local/bin/authbind –deep in the /opt/sap/scc/daemon.sh file.

Could you follow?

10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 02, 2016 at 02:39 PM

Thank you so much Philipp . As SAP said that the configuration is not an official procedure, the customer decided to not implement it.

Thank you so much for explaining step by step the procedure.

10 |10000 characters needed characters left characters exceeded
Skip to Content