-2

I hope you can give me some information and solutions about a problem which Im struggling right now:

Im working on a linux machine and I have a software development kit installed on this machine, which is written in C. If you have started the SDK in a linux-terminal you have a few options/commands which you can execute in the SDK. Commands could be "start", "stop", "restart" or "pause".

Now, I want to execute this commands on a html site.

I know, that I can execute the sdk in a php-script via (shell_exec('...'), but I dont know how to excute the commands in the SDK via the php-script.

Do you know how to do this?

Thanks in advance.

1 Answers1

0

Welcome to StackOverflow @codingguy.

The question you're looking for is how to write to stdin of a subprocess.

You can look at this question another used asked. Hope that helps.

N. D.
  • 311
  • 2
  • 8