pd-externals / command

execute system commands from Pd
Other
4 stars 1 forks source link

Allow blocking mode #17

Closed reduzent closed 1 year ago

reduzent commented 2 years ago

It might be desirable in some situations to run [command] in blocking mode, so that order of execution is maintained, even if there is a [command] in the chain. Maybe this could be done with a flag -d (depth-first?) .

[loadbang]
|
[t b b]
|     |
|     [exec date (
|     |
|     [command  -d]
|  /
[print]

Would yield:

print: Do 24 Nov 2022 11:10:24 CET
print: bang
umlaeute commented 2 years ago

-d doesn't look very memorable to me.

reduzent commented 2 years ago

Yeah, the only memorable thing that comes to me is -b, which is already taken. I'm open for suggestions. Memorable or not, I tend to find one character flags nice. Would you rather go for something like -blocking?

reduzent commented 2 years ago

And: do you think such a feature would be worthwhile at all?

reduzent commented 1 year ago

I went for -s: synchronous operation.