[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting $(allclasses) into a shellcommand
From: |
Russell Adams |
Subject: |
Re: Getting $(allclasses) into a shellcommand |
Date: |
Thu, 15 Jul 2004 13:21:24 -0500 |
User-agent: |
Mutt/1.4.2.1i |
How about create a temporary directory, ensure its empty, and then
iterate a shellcommand like 'touch $(allclasses)' in that directory?
Then your perl script could use the files to see the classes.
Just my $0.02.
Russell
On Thu, Jul 15, 2004 at 01:16:38PM -0500, Chip Seraphine wrote:
>
> I have some truly enormous $(allclasses) strings as a result of using
> cfengine
> to maintain my RPM distributions. (If you define one 15-to-25 character
> class for every RPM you need installed, and you need a few hundred RPMs right
> after a clean kickstart....)
>
> Anyway, I am having issues passing these large lists of classes into the perl
> script that does the actual RPM installation. Mark enlarged a buffer
> somewheres when I had this problem earlier, but said buffer has been
> outgrown... I'd like to find a Proper Solution to this.
>
> What is a better way than "/some/command $(allclasses)" for doing this sort
> of
> thing? Is there some kind of iterator-type trick anybody knows?
>
> --
>
> Chip Seraphine
> Unix Administrator
> TradeLink, LLC
> 312-264-2048
> chip@trdlnk.com
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine