Hi All,
Is there somewhere I can find some how-tos on using bash scripts with [shell]
I *think* I'm able to get [shell] to run them, but how do I pipe in variables for the script to use?
Bash scripting with \[shell\]
Hi All,
Is there somewhere I can find some how-tos on using bash scripts with [shell]
I *think* I'm able to get [shell] to run them, but how do I pipe in variables for the script to use?
i *think* you can pass arguments to the script something like [pack f s f]--"/path/to/script.sh $1 $2 $3"--[shell], but i'm not sure, i never used [shell]...
once inside the script you can get the arguments using the same syntax - bash uses $0 for the program file/path - then $1 $2 $3 etc (and some funky things like "all of them" and "count them" that i've never used)
for actual piping streams of data from pd into a running script and back out into pd again, i don't know what solutions exist - maybe something in Python or Lua or something else could make it easier, or if you don't need synchronous results then i guess netsend / netreceive objects with the pdreceive / pdsend tools.
[shell] can be really unpredictable because of buffering issues at the OS level.
If you want anything halfway reliable I suggest taking Claude's advice and using a language like Python, Perl, Lua, Java, anything that can offer a socket and using [netsend]/[netreceive] to do the talking.
Use the Source.
Oops! Looks like something went wrong!