neurobin / shc

Shell script compiler
https://neurobin.org/projects/softwares/unix/shc/
GNU General Public License v3.0
2.04k stars 349 forks source link

Use environment commands #140

Closed ajmeese7 closed 2 years ago

ajmeese7 commented 2 years ago

Hey all, quick question that I am currently struggling with. In my binary I am running an external command that is installed on the target system, in this case frotz. When I run my .sh script it works without problems, but when I run the binary created by shc -U -f "$filename" -o "${filename%.*}" I get the following:

./filename1: line 6: frotz: command not found

Is there a good way to get the executable to respect the software installed on the system so this will work as expected? Thank you!

ajmeese7 commented 2 years ago

Turns out this is simply a weird permissions thing, frotz just isn't recognized for the superuser at all. Thanks anyways, I really appreciate the project!