Oh I see, well it looks like I've hit another issue cause it doesn't stay open. :-(
I'm thinking it might have something to do with the variables as I couldn't even grep for the essid.
I did have everything working when it was in its own little script, the problems started when I merged it with FrankenScript.
I'll continue to try and fix it, hopefully it wont be long.
I might end up having to re-write FrankenScript, or worse case I'll have to put it back in its own little script.