thanks a lot, IOhannes !
your first answer pointed to the right direction. i found the solution after digging a bit more in the archives:
for non-native executables (FFPLAY in my case) you need to provide absolute paths in the shell scripts.
so, while a shell script that reads:
ffplay -i MYSTREAM
works ok when run from the terminal, a shell script called from [shell] needs to be:
/usr/local/bin/ffplay -i MYSTREAM
thought so, but where to look ? since the [shell] operation is in the background i don't really have a terminal to check for errors.
start Pd from the terminal. then watch the terminal where you started Pd from.
also very helpful !
best
oliver
On 2018-04-20 11:50, oliver wrote:
your first answer pointed to the right direction. i found the solution after digging a bit more in the archives:
for non-native executables (FFPLAY in my case) you need to provide absolute paths in the shell scripts.
i figure this just a PATH issue (PATH missing "/usr/local/bin")
for interactive shells (which is what you get by opening Terminal.app), this seems to be automatically handled by ~/.bashrc. at least mine (on an OSX machine) looks like:
# only run in interactive mode:
[ -z "$PS1" ] && return
export CVS_RSH=ssh
export PATH=${PATH}:/usr/local/bin
if [ "x${EDITOR}" = "x" ]
then
export EDITOR=/usr/bin/vi
fi
which makes it clear that non-interactive shells (and non-bash) shells do not get the merits of /usr/local/bin/...
you could:
somewhat ugly as it breaks everything if the paths ever change)
your script (after the hashbang) and don't worry any more.
fgmasdrt IOhannes
[1] https://docs.brew.sh/FAQ#my-mac-apps-dont-find-usrlocalbin-utilities