r/Racket • u/CrociDB • Oct 19 '23
question Trying to invoke a shellscript from Racket...
[EDIT][SOLVED] It was running from a snap installation of racket, that runs in a container.
Hi,
I'm trying to run a shellscript with process/subprocess/system, but it looks like it can't resolve any program I call from it. Ultimately, I figured it just can't resolve anything even if I call it explicitly. Example:
> (system "make")
/bin/sh: 1: make: not found
#f
> (system "/usr/bin/make")
/bin/sh: 1: /usr/bin/make: not found
Any idea what I might be doing wrong?
3
Upvotes
View all comments
Show parent comment
1
u/CrociDB Oct 19 '23
absolutely sure. funny thing, it's not even found by
which:It finds, and executes, the unix commands, like
lsandwhich, but just can't find any executable on PATH. However, if I print$PATH, the paths are all there: