redirection to various html files based on IP list
Hello, I need to make script which will go through file with IP addresses (one IP per line), and then compare each line to $ENV{'REMOTE_ADDR'}, and if it is equal then it will load first html to browser, otherwise it will load second html. Can anyone help me with this please? -- Martin Hudec -- :@: [EMAIL PROTECTED] :w: http://www.corwin.sk :m: +421.907.303.393 "In google non est, ergo non est." - unknown IRC operator -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: script looking for expression in files
Hello Rob, this was meant for linux not windows...i don't know anything like that in windows :( sorry -- Best regards, Martin mail [EMAIL PROTECTED] mobile +421.907.303.393 icq34358414 wwwhttp://www.corwin.sk PGP key fingerprint 21365ca05ecfd8aeb1cf19c838fff033 "In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri." by Douglas Adams Wednesday, January 8, 2003, 6:00:30 PM, you wrote: RD> John RD> That doesn't seem to work on my Win2K system ;-) RD> Rob RD> "John W. Krahn" <[EMAIL PROTECTED]> wrote in message RD> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Martin Hudec wrote: >> > >> > Hello, >> >> Hello, >> >> > I need to call a script which will be searching for string (posted >> > from PHP) in all files in one directory and its subdirectories and RD> then >> > it will print filenames in which it found the string to STDOUT >> > >> > Can anyone help me please with this script? >> >> grep -lr "string" * >> >> >> John >> -- >> use Perl; >> program >> fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: script looking for expression in files
Hello John, thanks a lot, now i can move further :))) -- Best regards, Martin mail [EMAIL PROTECTED] mobile +421.907.303.393 icq34358414 wwwhttp://www.corwin.sk PGP key fingerprint 21365ca05ecfd8aeb1cf19c838fff033 "In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri." by Douglas Adams Wednesday, January 8, 2003, 3:28:06 PM, you wrote: JWK> Martin Hudec wrote: >> >> Hello, JWK> Hello, >> I need to call a script which will be searching for string (posted >> from PHP) in all files in one directory and its subdirectories and then >> it will print filenames in which it found the string to STDOUT >> >> Can anyone help me please with this script? JWK> grep -lr "string" * JWK> John JWK> -- JWK> use Perl; JWK> program JWK> fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
script looking for expression in files
Hello, I need to call a script which will be searching for string (posted from PHP) in all files in one directory and its subdirectories and then it will print filenames in which it found the string to STDOUT Can anyone help me please with this script? -- Best regards, Martin mail [EMAIL PROTECTED] mobile +421.907.303.393 icq34358414 wwwhttp://www.corwin.sk PGP key fingerprint 21365ca05ecfd8aeb1cf19c838fff033 "In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri." by Douglas Adams -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mail Problem. Can Anyone Help Me?
-BEGIN PGP SIGNED MESSAGE- Hash: MD5 Hello Bootscat, well it looks like you are missing Mail::Sender library...use for example CPAN to find it and.$smtp_server = "localhost.com"; I just want to ask you...are you using this domain? because it looks to me like it is from source code example and that localhost.com should be changed to your SMTP server - -- Best regards, Martinmailto:corwin@;corwin.sk Thursday, October 24, 2002, 3:46:30 PM, you wrote: B> I'm setting up a mysqls email list. B> In the config file it has this varables B> # Path to SendMail B> $mailprog = "/usr/sbin/sendmail"; B> $smtp_server = "localhost.com"; B> When I try to login I get this: B> Can't locate Mail/Sender.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 B> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at admin.cgi line 1134. B> BEGIN failed--compilation aborted at admin.cgi line 1134. B> This is the line in the script it refers to: B>use Mail::Sender; B>ref ($sender = new Mail::Sender({from => $admin_email,smtp => $smtp_server})) or die "$Mail::Sender::Error\n"; B>while ($pointer = $sth->fetchrow_hashref) { B> $new_contact = $pointer->{"Contact"}; B> (ref ($sender->MailMsg({to =>$new_contact, subject => $msubject, msg => $mmessage})) B> and print "" B> ) B> or die "$Mail::Sender::Error\n"; B>} B>$sth->finish; B>$dbh->disconnect; B> Can someone tell me how to correct this problem? B> Thanks and God Bless B> Dan -BEGIN PGP SIGNATURE- Version: 2.6 iQIVAwUAPbf2pEPT2lg9k7IvAQHEiw/9FOwUBJfGou9/n+pgHQ7p5uus37290/v4 HZOCNFSF3a53Ie7WDiZ/0xhIjdHBHl2hnvoPNt875Ze0yCeXYwEqmzTTQ7jgbmfc v6/MUjEDGs2o9ORSLuW1FKY87nWzNHi5fPcLArCVoc9NeOky23iNBut87boOcoY5 KTdZjVj/EVjEqaNOwKJzhPHYaQPEzUCjzFhn8g0RGDEQgAkItCGU8g9zvECrvnDI cLFlhH88sfkDJyrpTCfM5V6vV2aInTwjpnZA0RD7OKtZkEoeX5OOLy+xuh5TgHjQ 8RCeuD0hICuE84iqaMhFt+CjAPNdtRqQAnLjYRZ/exb0UNor4vt8GZp/s3XNvKxd jVhHwounu4a1CiMy4U1I8yxWS4es0wgftG/ogMexY691+U5hWcpoh+ZfdLpCwUZC eUWEfjaOR3lTGeDWPg+312HMemEKn/Yscm5NsGu6vfOZLud0xDDhZnJ+L2aO+vEf u09fXPTDKrwTjSoOmClG/lBePo7dvjmKjHog4NGfbMyO4FgHyl8RjMCd4W5Es7i5 yE8HEt5F0mn5TlpRdzu1bdaicJ6LU+6cQLDhNRn19uAxjePoGOLL9vIqnROpzYzz KBSA3HefT9yMFpd9PEXIwCLK59ZJj3Hn8CBsrVx/Y0fzbD+MtOesoSvciXDMqi/M 9XyqT5/SBYk= =j5/4 -END PGP SIGNATURE- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Perl vs. PHP?
Hello Matthew, so Perl is also good that you can implement many more languages such as c++, also there are many modules at CPAN (swig) for this. If you want to see our perl implementation look at www.markiza.sk which was formerly running on PHP and his average load was around 10-20 with PHP, now it is about 0.5 to 0.7 average load. Yes, PHP is good for database using sites (it is easier and faster to write such site in PHP than in perl). Wednesday, October 23, 2002, 5:50:07 PM, you wrote: MCP> My take: MCP> PHP - MCP> many glorious "built-in" functions MCP> easily embedded into HTML MCP> simple to learn, easy to read MCP> simpler documentation MCP> very fast MCP> practically made for database driven sites MCP> more lengthy than perl MCP> weaker system commands MCP> at home on any system MCP> Perl - MCP> many glorious "modules" MCP> difficult to learn, but totally worth it MCP> slightly complex documentation MCP> more powerful than PHP MCP> faster than PHP MCP> not as quick for web development, but a bit more robust MCP> more at home in *nix environment (could be wrong here...) MCP> My background - PHP Web application developer - 3yrs MCP> OOP-OOD - 2yrs MCP> Perl Person - 2 yrs MCP> On the whole, I use PHP for database driven web pages, and Perl for system MCP> tasks, back-end applications, backups, etc...(everything else). MCP> Matt -- Best regards, Martinmailto:corwin@;corwin.sk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perl vs. PHP?
Hi all, well I use Perl and sometimes PHPdifferences for me are these... PHP is good for small web projects such as small e-commerce, guestbooks etc. applications. Perl is excellent for big web projects such as portals, mainly because it is more integrated into system than PHP, also you can use more system functions...etc. Oh, and i use Perl often in Linux administration to write scriptscurrently we are developing standalone Windows application with GUI in Perl : -- Best regards, Martin mailto:corwin@;corwin.sk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]