Redd Vinylene wrote:
Can something similar be used for my
ifconfig_rl0_aliasN="inet 66.252.2.N netmask 255.255.255.255"
as well?
You'ld have to write a loop:
for N in $( jot 124 4 ) ; do
eval "ifconfig_rl0_alias$N=\"inet 66.252.2.$N netmask 255.255.255.255\""
done
Cheers,
Actually:
jail_box_ip=$( jot -w "66.252.2.%d" -s "," 124 4 )
gives me:
Aug 2 20:10:50 mother root: /etc/rc: WARNING: devfs_set_ruleset: you
must specify a ruleset number
Aug 2 20:10:58 mother root: /etc/rc: ERROR: jail: No IP address has
been defined for box
On Sat, Au
;
ips=$(($alia+4)) ;
echo "ifconfig_rl0_alias$alia=\"inet 66.252.2.$ips netmask
255.255.255.255\"" ;
done
Regards
Lars,
arbeidsøkende, Oslo
On Sat, Aug 2, 2008 at 8:07 PM, Redd Vinylene <[EMAIL PROTECTED]> wrote:
jail_box_ip=$( jot -w "66.252.2.%d" -s ","
Can something similar be used for my
ifconfig_rl0_aliasN="inet 66.252.2.N netmask 255.255.255.255"
as well?
On Sat, Aug 2, 2008 at 8:07 PM, Redd Vinylene <[EMAIL PROTECTED]> wrote:
> jail_box_ip=$( jot -w "66.252.2.%d" -s "," 124 4 )
>
> What a go
jail_box_ip=$( jot -w "66.252.2.%d" -s "," 124 4 )
What a gorgeous solution ;)
Thanks man!
On Sat, Aug 2, 2008 at 7:37 PM, Matthew Seaman
<[EMAIL PROTECTED]> wrote:
> Redd Vinylene wrote:
>>
>> Hey, I got a couple of hundred IPs, is there an easy way t
Redd Vinylene wrote:
Hey, I got a couple of hundred IPs, is there an easy way to add them
all to jail_box_ip="ip1,ip2,ip3" without making like the longest line
ever?
Like this?
jail_box_ip="66.252.2.4,\
66.252.2.5,\
66.252.2.6,\
Unfortunately that doesn't look too good.
Here's what I got so far: http://pastie.org/246189
And this is just wishful thinking I guess: http://pastie.org/246190
On Sat, Aug 2, 2008 at 7:08 PM, Redd Vinylene <[EMAIL PROTECTED]> wrote:
> Hey, I got a couple of hundred IPs, is there an easy way to add them
> all to jail_bo
Hey, I got a couple of hundred IPs, is there an easy way to add them
all to jail_box_ip="ip1,ip2,ip3" without making like the longest line
ever?
Like this?
jail_box_ip="66.252.2.4,\
66.252.2.5,\
66.252.2.6,\
Unfortunately that doesn't look too good.
Nor does:
export