On 23 Nov 2009, at 3:41 PM, Christopher Johnston wrote:
> Yes it prints 4 directly into the file, but I cant put
> processorcount into the loop. Works fine in ruby but erb fails.
> Any ideas here on how to do this? I need to be able to determine
> the number of processors on the systems so I can generate a
> configuration file (loop through each processor number).
>> <% for cpu in (0..processorcount) %>
Try:
<% for cpu in (0 .. processorcount.to_i) %>
--
Ian Ward Comfort <
icom...@rescomp.stanford.edu>
Systems Team Lead, Student Computing, Stanford University