The code in lines 87-94 check to see if the file specified in lin 69 [vLastIPFileName] exists, and if it doesn’t it creates it.
The creation is simply a print of the root directory of your RB. [Which is what you’re seeing in that file…]
…Ah, the light turns on for me!
I’d guess what is happening is that the first run, the file doesn’t exist, so it creates it, then immediately tries to read it, which won’t produce anything useful.
We need to add a couple of lines to populate it with a temporarily bogus IP.
[I must not have tested for this condition…I thought I had, but alas, I must not have…]
Lets try this.
Replace line 93 with this
/file set [/file find name=$vLastIPFileName] contents="1.2.3.4"
Then, delete the file specified in Line 69 off the the RB. [This will force it to re-create the file, and test our new code…]
Then run it again and let me know what happens.
-Greg