[Novalug] Perl "one-liners" (was "Tutorials")
nick at hackermonkey.com
Mon Dec 18 10:11:33 EST 2006
Paul W. Frields wrote:
> On Mon, 2006-12-18 at 08:18 -0500, Michael Stone wrote:
>> On Sun, Dec 17, 2006 at 10:29:59PM -0500, Nick Danger wrote:
>>> So sed/awk DOES have its purposes.
>> Sounds more like a limitation in kickstart than a reason for awk.
>> Probably you're seeing a side effect of rhat's python-mania. I don't use
>> redhat myself, so I can't speak to the kickstart issue.
> You can set the kickstart post-install interpreter to be any available
> binary by declaring that section with "%post --interpreter <cmd>". It
> runs in a chroot environment, so /usr/bin/perl would be fine, for
> example. Alternately you could write a series of scripts, "curl" them
> from a webserver based on some logic, and execute. Possibilities
Now this is a perfect example of the list working. I didn't know this,
and I found nothing about this in my kickstart manuals. I was limiting
all my post install changes to what I could do from within the kickstart
file itself, and what tools were limited via the booted cd. And for some
reason, I thought the post install interpreter also worked only from the
cd environment, not chroot'ed into my installed environment.
Possibilities do abound, and now my mind is wobbling. Now someone
giving an in-depth class on kickstart, that I would go to. I never saw
the need for taking the high dollar RHCE classes for my needs, and I
figured those would always be 'how to pass the test' anyway.
I think I'll save rewriting them as a holiday break exercise. Its pre
xmas week and I need eggnog.
More information about the Novalug