Php simulates linux command lines. how can this problem be solved?

Source: Internet
Author: User
Php simulated linux command line just interviewed a company and they planned to ask me to use php to simulate the linux command line. but I have never touched on linux and have no idea yet, you have to come up with an idea .. maybe they're going to get this stuff to FreeBSD, and unix will be less familiar with php simulating linux command lines.
I have just interviewed a company and they want to ask me to do something that uses php to simulate linux command lines. but I have never been in touch with linux, and I have no idea at the moment. I have nothing to worry about, come up with an idea .. maybe they're going to get this stuff to FreeBSD, and unix is even less familiar.

------ Solution --------------------
Simulate command line? Is there any details? What does the command line look like? Call shell?
------ Solution --------------------
Direct:
Exec ("ps-awx ");
System ("ps-awx ");
Same execution
------ Solution --------------------
Discussion

It is equivalent to the same effect as the linux Terminal. you can run the command, but you can open a php page instead of a window.

------ Solution --------------------
Simple Demo:
PHP code
  Script function goExec () {document. exRow. submit ();} script
------ Solution --------------------
Research on ssh protocol
------ Solution --------------------
It mainly involves permission management. php only has the user Master of the web server. what permissions do you plan to give it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.