Re: which php file is sending emails?
| From: | Nilesh Govindarajan | Date: | Sun, 16 Jan 2011 07:29:20 +0000 |
| Subject: | Re: which php file is sending emails? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310794@lists.php.net to get a copy of this message | ||
On 01/16/2011 12:33 PM, Jim Lucas wrote:
On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote:LOL. Anyways, we always learn from mistakes. Thanks for correcting me. Actually I wrote that in a hurry, so didn't test it. Usually I test before writing any code/command on irc/mailing lists. Apologies friends. :) -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.comOn 01/15/2011 11:13 PM, Daniel Brown wrote:Ok, are you trying to pull our chain here??? Which version of Linux? I have tried your example on CentOS release 4.2 (Final), and CentOS release 5.5 (Final), and it gives me this # grep -l mail $(find -name *.php) find: paths must precede expression Usage: find [-H] [-L] [-P] [path...] [expression] and it just sits there waiting for input, just like grep would if I did this # grep -l mail I have to surround the name value in quotes to make it work. Like so... # grep -l mail $(find -name "*.php") So, please, within what version of Linux does your example work? If you are going to give advice and want to contribute good working example code to the archives of this mailing list, please, for everybody's benefit make sure the code example works as expected. Or, if it is to used as a guide to get the person thinking, say that. Jim LucasOn Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan<nilesh@itech7.com> wrote:hahaha, that command wasn't broken. It works on Linux. But certain commands have to be changed to work on *BSD. For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but will not on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o= directory.On 01/15/2011 10:22 PM, Jim Lucas wrote:Um, I use OpenBSD and that command gives me an error or two... $ grep -l mail $(find -name *.php) find: unknown option -- n find: unknown option -- a find: unknown option -- m find: unknown option -- e formmail.php $ grep -l mail $(find ./ -name "*.php") Output a big long list of files...So the second one is right.His point was in the irony --- you sent a rather insulting messageto the OP suggesting he needs to "revise [his] sysadmin skills," whereas your own example was broken. Probably just a typo, but something worth a second thought for next time.