I want to use wfx_test_agent script but it got the ERROR " -sh: wfx_test_agent: not found "
I already “chmod” to the file but still cannot use how can I do??
you need to use absolute path in the script to specify the location of wfx_test_agent
how to absolute path in the script??
maybe you need to add /usr/local/bin in front of the wfx_test_agent
still get same error
root@swi-mdm9x28-wp:~# ./home/root/wfx-linux-tools/test-feature/wfx_test_agent --help
-sh: ./home/root/wfx-linux-tools/test-feature/wfx_test_agent: not found
root@swi-mdm9x28-wp:~# /home/root/wfx-linux-tools/test-feature/wfx_test_agent --help
-sh: /home/root/wfx-linux-tools/test-feature/wfx_test_agent: not found
root@swi-mdm9x28-wp:~# wfx_test_agent --help
-sh: wfx_test_agent: not found
root@swi-mdm9x28-wp:~# /usr/local/bin/wfx_test_agent --help
-sh: /usr/local/bin/wfx_test_agent: not found
root@swi-mdm9x28-wp:~# ./usr/local/bin/wfx_test_agent --help
-sh: ./usr/local/bin/wfx_test_agent: not found
root@swi-mdm9x28-wp:~# chmod a+x /usr/local/bin/wfx_test_agent
root@swi-mdm9x28-wp:~# ./usr/local/bin/wfx_test_agent --help
-sh: ./usr/local/bin/wfx_test_agent: not found
it says “/home/root/wfx-linux-tools/test-feature/wfx_test_agent: not found”
root@swi-mdm9x28-wp:~# ls /home/root/wfx-linux-tools/test-feature
README.md wfx_pds_tree.py wfx_test_agent wfx_test_functions.py
job.py wfx_test.py wfx_test_core.py
root@swi-mdm9x28-wp:~#
I don’t see problem:
root@fx30:~/wfx-linux-tools# mkdir test-feature
root@fx30:~/wfx-linux-tools# cd test-feature/
root@fx30:~/wfx-linux-tools/test-feature# ls
root@fx30:~/wfx-linux-tools/test-feature# touch wfx_test_agent
root@fx30:~/wfx-linux-tools/test-feature# chmod 777 wfx_test_agent
root@fx30:~/wfx-linux-tools/test-feature# /home/root/wfx-linux-tools/test-featur
e/wfx_test_agent
root@fx30:~/wfx-linux-tools/test-feature# /home/root/wfx-linux-tools/test-featur
e/wfx_test_agent --help
root@fx30:~/wfx-linux-tools/test-feature# echo "echo 123" > wfx_test_agent
root@fx30:~/wfx-linux-tools/test-feature# cat wfx_test_agent
echo 123
root@fx30:~/wfx-linux-tools/test-feature# /home/root/wfx-linux-tools/test-featur
e/wfx_test_agent --help
123
root@fx30:~/wfx-linux-tools/test-feature#
Can you try with this file?
https://github.com/SiliconLabs/wfx-linux-tools/tree/SD5/test-feature
can you add the line one by one and see which line gets the error?
This is standard way to debug