Page 1 of 1

Real Time PHP script for ngrep

Posted: Thu Aug 02, 2007 8:23 pm
by nhan
HI,

just wan to inquire if its possible, dont have the knowledge to do so, maybe someone can give me an idea... we have a program running and usually we use "ngrep [search string]" to capture logs on a linux server, is there a way i can do this query using php and create a web-based query for this?

:?:
thanks!

nhan

Posted: Thu Aug 02, 2007 9:47 pm
by Christopher
Yes, see the manual for functions to execute system commands and load files.

http://www.php.net/manual/en/ref.exec.php

http://www.php.net/manual/en/ref.filesystem.php

Posted: Fri Aug 03, 2007 7:35 am
by kyberfabrikken
Remember to be paranoid when routing something from a HTTP request to your shell.