Latest mini2440BSP bash pidof problems
Upgraded a system that has been working nicely with the previous BSP and 3.7
and having a few problems.
My main PHP script starts with:
and the error I get when I invoke:
./data.php (from the directory where this script is located) is
./data.php line 3: ?php: No such file or directory
I can work around this problem by calling:
The issue that I have not been able to work-around is, that in another
script I ensure that data.php is killed before trying to start it again.
So, in an initialise script I have:
kill `pidof data.php`
and the error I get is:
kill: usage: [-s sigspec | -n signum | -sigspec] pid | jobspec ...
or kill -l [sigspec]
The usage does not correspond to the usage options listed in the Busybox
docs for kill, so I am confused.
I have Googled and tried many other kill examples to no avail.
I have tried php, bash, awk from the previous working system to no avail
either. I also tried disabling Busybox ash as initially I was getting ash
warnings when running the bash script, which also confused me. I also read
that pidof might not operate correctly on running scripts.
Should I try maintaining a list of PIDS and then refer to that list when I
want to kill my data.php?
Something has changed, any suggestions appreciated.