We’re trying to invoke some simple shell scripts from an unsandboxed Legato app that uses the WP 7603 but have so far been unable to do so. The scripts are present on the module (installed manually at this point) and we can run them all manually so I don’t think there are any path or permissions issues. It seems as though something is needed by Legato, I presume in the .adef, but don’t know what that is.
This seems like such a simple requirement I can’t believe it’s going to require customizing linux as installed on the module with Yocto or anything of that complexity, and assume it’s just something we’ve overlooked? We’re invoking the scripts using calls with this format: system(“/bin/sh /home/scripts/test_script”);
Any help would be appreciated as we’re stymied at this point.
Thanks for the response. Unfortunately removing /bin/sh made no difference (I think I tried with and without it - should have mentioned that). Looking at the return from the system call it’s 32512, which seems like it might be a path issue, but I’m using the full path. I even tried changing to the script dir first but that didn’t work. Something to do with busybox maybe?
Following your link it looks like some of the previous user’s issues were resolved by upgrading from 17.11 but we’re already using a newer legato than that (18.10.3).
So your system(“/tmp/test.sh”) call runs just like that? Nothing had to be added to the .adef?
Thanks jyijyi, confirmed it works with FW R13. Unfortunately that version is not supported by Dev. Studio so we may have to use it unsupported, or move to VS Code (had been hoping to defer that for a while…)
That version shows up as one of the available packages and is what we’ve installed, however according to the notifications tab it’s not supported. At the moment we’re using it anyway as it does seem to work.