lte scanning in script

Hi All,

I’m writing a script to select the best network to connect to on a multi network roaming SIM. i need to scan the networks, then connect to the network based on access technology.

I can scan networks using interface lte scan lte1 and get a list with the data i need, but i cant seem to get this to go into a variable to process.

any ideas?

thank you