Hi AlejandroPadrino
... The script runs fine in ash command shell, but it did not run into tc-config file. Why? ...
It did not run, or you did not see the result you expected?
Those are 2 different issues that could show the same symptoms.
You need to add some debugging code to find out what's happening.
Change your tc-config to this:
xFile=/mnt/sda1/myfolder/myscript.sh
if [ -f "$xFile" ]; then echo "xFile=$xFile" > /tmp/xFile.log ; fi;
if [ -f "$xFile" ]; then command $xFile ; fi;
Then add this to myscript.sh:
echo "myscript.sh started" >> /tmp/xFile.log
echo "Environmental variables:" >> /tmp/xFile.log
env >> /tmp/xFile.log
Check that the log file exists.
Check that the variables you need are listed in the log file.
Check the PATH variable in the log file. Make sure:
1. It includes paths you assume to be defined are included.
2. Make sure the order of the paths matches what you expect.