Php shell script execution problems

Source: Internet
Author: User
Php executes shell scripts on the xamp environment platform on ubuntu. When using php shell_exec to execute shell scripts, only some commands can be executed, or only echo commands can be executed, such as cat & nbsp; and more, and no response information is returned, for example: echo & nbsp; "a" php shell script execution problem
Xamp environment platform built on ubuntu. When using php shell_exec to execute shell scripts, only some commands can be executed, or only echo commands can be executed, such as cat and more, without any response information, such:
Echo ""
Cat a.txt
More B .txt
Echo "B"
The result is: AB. the two commands in the middle are not executed, and no feedback is provided. why?
Share: More

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.