Help with "AT" commands

Hello all ,
I want to make a script that get information from the modem
like “at+csq” - and get the answer out to log file?
is it possible?

and also if I want just to change value in the modem ?
let say that I want to make a script that make : change “selrat=3” every 30 min

again is it possible?

thank you,

anyone?

I would also very much like to know if there is a good answer to the first question posted above. I’ve tried to use modem-init string to for example check the signal quality before connecting, but while it probably executed the at-command, I didn’t find a way to get the result from /interface ppp-client enable …