Advice before starting - please

Hello, I must start by saying I am totally new to Linux…

My question is.

I have some cron jobs which automate 2 different commands at 2 different times that run fine at the moment.

When the command I am issuing has completed in the script there is a return value, which I would like to extract and apply math to use in the rest of my script, maybe issue another command based on the logic.

Would I be right in using Expect ?

after the command the reply would be “some text : value” the value will be numbers.

the reason I am asking is I don’t want to install expect and it not be the right application for it and possibly mess up my small Linux install that’s working.

Many thanks