I used to use PHP for shell scripting because it was what I knew best, but then I learned ksh/bash and perl and I find that those generally work better. I can get many things done more "natively" than using several "exec" and "system" commands. I also like Perl's text matching/parsing (read: regex) functions better.
<br><br>
<div><span class="gmail_quote">On 8/22/05, <b class="gmail_sendername">Tony Bibbs</b> <<a href="mailto:tony@tonybibbs.com">tony@tonybibbs.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">For me it's what I know best. I'd hesitate to give any real advantages<br>since both are quite capable. I personally find Perl harder to read but
<br>that too is attributed to the fact I don't know it very well.<br><br>David Stout wrote:<br>> Other than web programming what would be the advantage of using PHP over<br>> perl?<br>><br>> */Tony Bibbs <<a href="mailto:tony@tonybibbs.com">
tony@tonybibbs.com</a>>/* wrote:<br>><br>> Sorry for not noticing you saying that earlier. Was on vacation last<br>> week so I haven't dug out of all the email yet.<br>><br>> Yeah, I like using PHP particularly at work as I usually hook-up PHPDoc
<br>> to produce documentation for the sys admins. I'm sure by know Perl<br>> probably has something similar.<br>><br>> --Tony<br>><br>> David Champion wrote:<br>> > I mentioned earlier in the thread that I'd done a little PHP shell
<br>> > scripting, but not much.<br>> ><br>> > Ideally it would be nice to make use of common PHP libraries<br>> between web<br>> > & cmd line scripts. I usually get lazy and create PHP web pages
<br>> that I<br>> > then call with a wget or something. Then I don't have to worry about<br>> > having the php cmdline version available...<br>> ><br>> > -dc<br>> >
<br>> > Dave J. Hala Jr. wrote:<br>> ><br>> >> I'm not doing it at the moment, but if I needed to write larger<br>> shell<br>> >> scripts I would definitely do them in php.
<br>> >><br>> >><br>> >> On Mon, 2005-08-22 at 12:51, Tony Bibbs wrote:<br>> >><br>> >>> Am I the only one scripting with PHP? Most on this list probably
<br>> >>> know you can do it but I seldom see many PHP shell scripts. I know<br>> >>> one of the issues is that Perl is generally included with most<br>> >>> flavors of *nix but anymore the same seems to be the same with PHP.
<br>> >>><br>> >>> I'm not meaning to start a flame war on PHP vs Perl, just<br>> curious if<br>> >>> others do it.<br>> >>><br>> >>> --Tony
<br>> >>><br>> >>> David Stout wrote:<br>> >>><br>> >>>> WOW thank you, I have this web site book marked these are great<br>> >>>> things to know as I take on my new position. I will of course be
<br>> >>>> bouncing a few questions off to you guys here and there as the<br>> road<br>> >>>> become a little rough.<br>> >>>><br>> >>>> Thanks again,
<br>> >>>><br>> >>>> */Kenneth Ristau /* wrote:<br>> >>>><br>> >>>> Josh More wrote:<br>> >>>> > I *strongly* recommend the book _Learning Perl_
<br>> >>>> > <a href="http://www.oreilly.com/catalog/learnperl4/">http://www.oreilly.com/catalog/learnperl4/</a><br>> >>>> ><br>> >>>> > Once you've read that one cover to cover and done all the
<br>> >>>> examples, read<br>> >>>> > _Programming Perl_ cover to cover.<br>> >>>> > <a href="http://www.oreilly.com/catalog/pperl3/">http://www.oreilly.com/catalog/pperl3/
</a><br>> >>>><br>> >>>> And once you've digested enough of those two and are looking for a<br>> >>>> handy, online reference, check out <a href="http://www.perlmonks.org">
http://www.perlmonks.org</a><br>> >>>><br>> >>>> later,<br>> >>>> kristau<br>> >>>> -- Tired programmer<br>> >>>> Coding late into the night
<br>> >>>> The core dump follows<br>> >>>><br>> >>>> My GNUPG public key is available at<br>> >>>> <a href="http://www.kristau.net/public_key.asc">
http://www.kristau.net/public_key.asc</a><br>> >>>> _______________________________________________<br>> >>>> Cialug mailing list<br>> >>>> <a href="mailto:Cialug@cialug.org">
Cialug@cialug.org</a><br>> >>>> <a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br>> >>>><br>> >>>><br>> >>>>
<br>> >>>> David Stout<br>> >>>> Business Forms Analyst<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > Cialug mailing list
<br>> > <a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>> > <a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br>> _______________________________________________
<br>> Cialug mailing list<br>> <a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>> <a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br>><br>
><br>><br>> David Stout<br>> Business Forms Analyst<br>><br>> __________________________________________________<br>> Do You Yahoo!?<br>> Tired of spam? Yahoo! Mail has the best spam protection around
<br>> <a href="http://mail.yahoo.com">http://mail.yahoo.com</a><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Cialug mailing list<br>> <a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>> <a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br>_______________________________________________
<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br></blockquote></div><br>