An error is reported when the php Command executes the shell script.

Source: Internet
Author: User
Error cause: the specific sort command grep & #039; download & #039; test. log | awk & #039; {print $2} & #039; | sort-r | uniq-c | sort-nr | head-n10 | less & quot; error understanding, PS: The execution result is correct. Guess: sort first writes the content of this file into 1...

Error cause: sort

Specific command grep 'Download' test. log | awk '{print $2}' | sort-r | uniq-c | sort-nr | head-n 10 | less"

Error

If you understand this, explain the cause. PS: The execution result is correct.

Guess:
Sort first writes the content of the file to a temporary file, and then sorts and writes the output result.

Note:
Similar issues on Baidu
Http://wapiknow.baidu.com/question/466815745.html

Reply content:

Error cause: sort

Specific command grep 'Download' test. log | awk '{print $2}' | sort-r | uniq-c | sort-nr | head-n 10 | less"

Error

If you understand this, explain the cause. PS: The execution result is correct.

Guess:
Sort first writes the content of the file to a temporary file, and then sorts and writes the output result.

Note:
Similar issues on Baidu
Http://wapiknow.baidu.com/question/466815745.html

  1. Where did your sort program come from? It has been confirmed that GNU sort 8.24 will not report such a noisy error. In fact, GNU coreutils has never been so stupid.

  2. From PHP, it doesn't make sense to add less. Only 10 rows of data. Is it meaningless to use less?

Note:
Baidu's information on programming technology is slag.

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.