Re: Bradford_Dissolvable_Agent.sh dependency problems
Posted: 19. Mar 2010, 15:31
That line executes fine:
0 means success.
So if it had sucess it extracts the binary portions, does some other stuff and finally launches the binary (which fails).
The actual problem is probably that it only searches within /usr/bin or /bin/ for the lsb_release script. Run this on your school's binary (fresh download please):
Otherwise you could put lsb_release into /bin or /usr/bin, because the binary might only search there, too.
I just tried to run the script and it worked fine. Except that I couldn't successfully run the binary as I only got the first line of it.
Code: Select all
$ lsb_release=$(which lsb_release); $lsb_release -v | grep -E "core-(3|4)\..-(ia32|x86_64)" >/dev/null; echo $?
0
So if it had sucess it extracts the binary portions, does some other stuff and finally launches the binary (which fails).
The actual problem is probably that it only searches within /usr/bin or /bin/ for the lsb_release script. Run this on your school's binary (fresh download please):
Code: Select all
sed -e 's#lsb_release=/usr/bin/lsb_release#lsb_release=`which lsb_release`# -i /path/to/binary'
I just tried to run the script and it worked fine. Except that I couldn't successfully run the binary as I only got the first line of it.