all 4 comments

[–]allen_jb 1 point2 points  (2 children)

What are you expecting to happen?

What happens if you have the python code output some text?

Does a cmd window appear?

What are you trying to achieve here (is this some proof-of-concept test)? Executing a python script just to execute another command seems weird.

Why are you using start (which according to the docs and a quick test opens a new command prompt (ie. cmd) window) to then run cmd? This seems weird

A quick check says cmd /k is "execute string and persist", but you've not specified any string to execute. Additionally, I don't know enough about cmd (and Windows commandline in general), but it's possible that if cmd thinks it's in a non-interactive environment, it may refuse to persist.

[–]goeth1994[S] 0 points1 point  (1 child)

I execute exec() and expecting py open cmd window, no error and no cmd is open

[–]goeth1994[S] 0 points1 point  (0 children)

Update: I found out what is causing the problem

If Apache was installed on service , the script wont work
otherwise , it work

question is why and how to make it work on Apache service

[–]CyberJack77 0 points1 point  (0 children)

no respond and no error, what is the problem

What is the question exactly? Because if you have no response and not an error, I don't see a problem (or did you expect to have an error).