0

I need to execute this command in my php project, first need to the document access.log and show it, then filter for the next code:

cat access.log |grep "2013-10-09" |grep Receive |grep from |grep 8386|wc -l

I know i need to stablish a connection to an SSH service but I don't know how to execute the command to go to the access.log and open it. I really need your help!

thanks!

4

1 回答 1

0

欢迎您熟悉ssh2_connect()ssh2_exec()以及所有ssh2_函数族。

试试这里: http: //php.net/manual/en/function.ssh2-connect.php http://www.php.net/manual/en/function.ssh2-exec.php

于 2013-10-11T15:05:02.983 回答