I am developing a php script that runs on a apache Linux system. It should execute several commands for me. Depending on which command I executed in the my custom php GUI.
Until now I was able to successfully implement this with various shell_exec commands. Now I want to run the following command via php exec script on the Linux system.
AdminTool $IP $USER $PASSWORD shell
Usually when i enter this command on the Linux System itself it opens a connection and runs a shell which is provided by the hardware manufacturer.
Now i want to run this shell using php exec and run the next command within this manufacturer shell. Depends on what I have selected via my custom php GUI.
The shell provides different commands within.
Does anyone know if this can work? And if yes how?