Check the syntax of multiple PHP files all at once
June 4th, 2006To check the syntax of all files ending with ‘.php’ file extension and execute the syntax check of php for every found file, we can use:
find ./ -type f -name \*.php -exec php -l {} \;
It is quite useful when you want to quicly see if any php file in a project/bunch of files, contains a parse error. Note: This command is for Linux/ Unix based systems. This will not work on a Windows system.
June 4th, 2006 at 9:13 am
Good start Jayant!!
for i in `seq 210 240`;do ping 192.168.1.$i | grep “from”;done
will quickly help u ping a set of machines. Just thought might be useful to system admins like me
June 5th, 2006 at 10:42 am
Thanks for the tip Sabarish.