Hi,
I am new to FreeBSD.
I have a script file from the old project that was written by the other people.
In the code, it used the type command to determine if the binary file is existed or not,
when I run to this part, it returns the error message. But the dag_extract does exist in the fold.
So I run the command type on the bash shell, which returns not found as shown in the picture.
But when I put this binary file in the /usr/local/bin, the type can return some values
This is really bizarre. Can anyone help me to solve this problem?
I need to put the dag_extract under the project fold as the other scripts call this binary.
Thank you very much.
I am new to FreeBSD.
I have a script file from the old project that was written by the other people.
In the code, it used the type command to determine if the binary file is existed or not,
Code:
d=$(type dag_extract)
if [ $? -gt 0 ]; then
err_exit "dag_extract binary cannot be found. Did you compile it?"
fi
echo " - $d"
So I run the command type on the bash shell, which returns not found as shown in the picture.
But when I put this binary file in the /usr/local/bin, the type can return some values
This is really bizarre. Can anyone help me to solve this problem?
I need to put the dag_extract under the project fold as the other scripts call this binary.
Thank you very much.