Answer the question
In order to leave comments, you need to log in
VPS: How to connect the web interface to the command line?
Please tell me in which direction I need to read, I want to use the web interface with a bunch of ubuntu server command line. The question is that I have no idea how to access the command line from the web and return the result of the CLI back to the user's browser.
To understand the issue, I will write a few examples of what I would like to learn:
Examples of use:
Answer the question
In order to leave comments, you need to log in
Depends on the programming language. In PHP, this is the passthru function . There are analogues in other languages.
By the way, I’ll join the TS question, but I’m wondering if there is a sparkling option to get the console really straight, and not the result of processing the command and returning to the home folder?
This means that if I somehow executed a command through PHP
, then after that I remained in the last directory . Or do you need crutches for this?
cd /usr/local/bin && ./script.sh
Perhaps it will be useful for future seekers, a similar topic How to get the program's response from the console to a variable?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question