Hello, I have a beagleboard-xM here running the angstrom distribution.
I try to run the program ls from a bash script with the command sh auto.sh
This is the content of the file:
I get the error
: not foundne 2: ls
So it looks like the command ls cannot be found.
When I type echo $PATH I get /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
The ls program can be found in /bin. I checked that with whereis ls. I am logged in as root user on the board and try to run the bash script from /home/root. I marked the bash script '777' with chmod.
The sh program is also in the folder /bin and is owned by the user www-data and group www-data. The
file is marked as '777' and is a symlink to busybox. I logged in to the www-data account with su www-data and typed echo $PATH
/bin:/usr/bin is the ouput.
I also tried it with the full path /bin/ls in the bash script but without result.
There is also normal bash in the /bin folder and is owned by the user root. I changed the first line
of the bash script to #!/bin/bash and tried to ran the bash script with bash auto.sh but I get the same error.
another thing I tried is the command ldd to see if there is a shared library missing.
The output of the command ldd bash:
libtinfo.so.5 => /usr/lib/libtinfo.so.5 (0x40026000)
libdl.so.2 => /lib/libdl.so.2 (0x4004c000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40057000)
libc.so.6 => /lib/libc.so.6 (0x40069000)
/lib/ld-linux.so.3 (0x40000000)
The output of the command ldd sh:
libm.so.6 => /lib/libm.so.6 (0x40026000)
libc.so.6 => /lib/libc.so.6 (0x40099000)
/lib/ld-linux.so.3 (0x40000000)
Does this mean these libries are present?
I searched a lot of forums, including this one.
But without any result.Does anyone knows a solution for this problem?
Thanks in advance
Dennis