cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with sapcontrol

Former Member
0 Kudos

Dear all,

I wounder if someone could explain something.

If I issue the folowing command it works and returns the correct information:-

sapcontrol -nr 20 -user <sid>adm <password> -function GetEnvironment

If I issue the following command it sort of works but gives a non-zero returncode:-

sapcontrol -nr 20 -function OSExecute "ls" 0 30

08.11.2010 12:01:26

OSExecute

OK

exitcode, pid, lines

2, 27013

If I issue the following command it gives an error:-

sapcontrol -nr 20 -user <sid>adm <password> -function OSExecute "ls" 0 30

08.11.2010 11:52:14

OSExecute

FAIL: Invalid Credentials

Can anyone tell me why I get Invalid credentials on the last command when the same credentials work on the first command?

Thank you

Russell Burrow

SAP Basis

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you for your response.

I have updated my system to the latest Kernel but I am still getting the problem.

I don't know what you mean by try "ll".

Regards,

Russell Burrow

SAP Basis

Former Member
0 Kudos

hi

i nt sure abt the exact cause, but as per the sap note [877795 |https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=877795](Please refer section 25) there was the child processing problem in OSexecute.

if you are doing this for slm connection, just try it with "ll" once or follow the maual

jansi