Re: TeraScript-Talk: Distinct IPs
Cheers Robert, I found the culprit. My rsuffix paramter was adding some whitespaces which was making the array values unique. Wayne > On 23 Feb 2018, at 11:19 am, Robert Shubert wrote: > > Wayne, > > Look for something simple because that should work. > > If you’re stuck forward the TAF or a reproduction of the problem to me at > support. > > Robert > > From: Wayne Irvine [mailto:wa...@byteserve.com.au > <mailto:wa...@byteserve.com.au>] > Sent: Wednesday, February 21, 2018 3:42 PM > To: TeraScript-Talk@terascript.com <mailto:TeraScript-Talk@terascript.com> > Subject: TeraScript-Talk: Distinct IPs > > I am building a tool to allow me to add addresses to Postfix list of banned > IPs. > > I’ve got it parsing the files and extracting the IPs and sorting them in > order, but I can’t get @DISTINCT to work. > > <@ASSIGN NAME=DistinctBadIPs VALUE=<@DISTINCT ARRAY=BadIPs COLS="1 DICT" > SCOPE=local>> > > > 173.240.14.31 Your IP is SPAM! > 173.240.14.61 Your IP is SPAM! > 185.153.229.0/24 Your IP is SPAM! > 185.162.146.0/24 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.244.77 Your IP is SPAM! > 185.179.246.28 Your IP is SPAM! > 185.65.246.142 Your IP is SPAM! > 185.70.187.118 Your IP is SPAM! > > > I’ve tried default (SMART), NUM, and DICT comparison types. Is it due to the > ‘.’s or something dumb I’m doing? > > Wayne > > Byteserve Pty Ltd > w: http://www.byteserve.com.au/ <http://www.byteserve.com.au/> > e: i...@byteserve.com.au <mailto:i...@byteserve.com.au> > p: +61 02 9960 6099 > m: 0409 960 609 > f: +61 02 9960 6088 > > > To unsubscribe from this list, please send an email to > lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe > terascript-talk" in the body. > > To unsubscribe from this list, please send an email to > lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe > terascript-talk" in the body. Byteserve Pty Ltd w: http://www.byteserve.com.au/ e: i...@byteserve.com.au p: +61 02 9960 6099 m: 0409 960 609 f: +61 02 9960 6088 To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.
RE: TeraScript-Talk: Distinct IPs
Wayne, Look for something simple because that should work. If you’re stuck forward the TAF or a reproduction of the problem to me at support. Robert From: Wayne Irvine [mailto:wa...@byteserve.com.au] Sent: Wednesday, February 21, 2018 3:42 PM To: TeraScript-Talk@terascript.com Subject: TeraScript-Talk: Distinct IPs I am building a tool to allow me to add addresses to Postfix list of banned IPs. I’ve got it parsing the files and extracting the IPs and sorting them in order, but I can’t get @DISTINCT to work. <@ASSIGN NAME=DistinctBadIPs VALUE=<@DISTINCT ARRAY=BadIPs COLS="1 DICT" SCOPE=local>> 173.240.14.31 Your IP is SPAM! 173.240.14.61 Your IP is SPAM! 185.153.229.0/24 Your IP is SPAM! 185.162.146.0/24 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.246.28 Your IP is SPAM! 185.65.246.142 Your IP is SPAM! 185.70.187.118 Your IP is SPAM! I’ve tried default (SMART), NUM, and DICT comparison types. Is it due to the ‘.’s or something dumb I’m doing? Wayne Byteserve Pty Ltd w: http://www.byteserve.com.au/ e: i...@byteserve.com.au <mailto:i...@byteserve.com.au> p: +61 02 9960 6099 m: 0409 960 609 f: +61 02 9960 6088 _ To unsubscribe from this list, please send an email to lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe terascript-talk" in the body. To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.
TeraScript-Talk: Distinct IPs
I am building a tool to allow me to add addresses to Postfix list of banned IPs. I’ve got it parsing the files and extracting the IPs and sorting them in order, but I can’t get @DISTINCT to work. <@ASSIGN NAME=DistinctBadIPs VALUE=<@DISTINCT ARRAY=BadIPs COLS="1 DICT" SCOPE=local>> 173.240.14.31 Your IP is SPAM! 173.240.14.61 Your IP is SPAM! 185.153.229.0/24Your IP is SPAM! 185.162.146.0/24Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.244.77 Your IP is SPAM! 185.179.246.28 Your IP is SPAM! 185.65.246.142 Your IP is SPAM! 185.70.187.118 Your IP is SPAM! I’ve tried default (SMART), NUM, and DICT comparison types. Is it due to the ‘.’s or something dumb I’m doing? Wayne Byteserve Pty Ltd w: http://www.byteserve.com.au/ e: i...@byteserve.com.au p: +61 02 9960 6099 m: 0409 960 609 f: +61 02 9960 6088 To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.