When is CM available to run after start up


#1

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.


#2

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

PATH=/legato/systems/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

Resolves the problem…