When is CM available to run after start up

Hi, I am trying to run a few cm data commands to set up the device on start up by editing the startlegato.sh file.

My script runs, but I get “cm: not found” . I’ve added a 10 second sleep before it to no avail. How can I be sure it is available before I run it.

Ahhh… the problem was my path… from within the script it was not set. So setting for example


Resolves the problem…