0

Hi fellow StackOverflow.

Is it possible for the PHP in the IIS. What's the function of the PHP is a button.

Once the button is clicked it will show result from the below command :

grep "0,100" logs.log -a | wc -l

Then it will show the value on the PHP . Is it possible to do so?

4
  • 1
    do you want to execute this command with PHP? Commented Dec 17, 2015 at 6:40
  • 1
    Check this: stackoverflow.com/questions/21613616/… Commented Dec 17, 2015 at 6:43
  • @SomnathMuluk, because the server that process is far.. It's production based, I don't want them to temper any data. So it's wise to create a page just to view the statistic. Commented Dec 17, 2015 at 6:45
  • Tangentially, that's a useless use of wc -l; POSIX grep would have grep -c -a "0,100" logs.log Commented Nov 7, 2017 at 10:57

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.