Hi Allen,
On 2016-08-17 06:43:20, you wrote to Michiel van der Vlist:
AP> I've also broken the ipv6 barrier with this too... I can now send mail
AP> to Wilfred via ipv6. Haven't had anyone hit me back with ipv6 at
AP> ipv6.livewirebbs.com yet. Can't wait to see who comes in first on
AP> that one.
Not working yet ('no route to host')...
AP> Anyhow... one more question. I have no idea what to name my .ilo
AP> files to make it poll certain nodes. Not everyone is nice and crashes
AP> things over to you... would love it if I can figure out how to create
AP> an .ilo poll file. Surely there's a command line utility that will do
AP> this without having to use the binkd -P option
It's easy. Just convert the net and node number to 4 digit hex numbers and
stick them together to get the base part of the filename.
I've written a little python (>= 2.5) script for it, that I use in my other
scripts:
+++
#!/usr/bin/python
from sys import argv
nodestr = argv[1]
(zone, sep, nodestr) = nodestr.rpartition(":")
(net , sep, nodestr) = nodestr.rpartition("/")
(node, sep, pnt ) = nodestr. partition(".")
def ToInt(obj):
try:
return int(obj)
except:
return 0
zone = ToInt(zone)
net = ToInt(net )
node = ToInt(node)
pnt = ToInt(pnt )
print "%04x%04x" % (net, node)
+++
Bye, Wilfred.
--- FMail-W32 1.69.25.189
* Origin: FMail development HQ (2:280/464)
|