LogAnalytics return code

Hi
I’m trying logAnalytics.
How to get that exec status in bash?

CMD=“python import_logs …”
RES=$CMD
echo $RES

it’s always empty.

Hi,

This has nothing todo with Matomo, but you can get the response code in Bash with $?

➜  ~ false
➜  ~ echo $?
1
➜  ~ true
➜  ~ echo $?
0

Thanks!
I try it!(^_^)b