[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
Nice, thanks > Am 24.02.2026 um 14:32 schrieb IOhannes m zmölnig via Pd-list > : > > i think it is often easiest, to do the job control in your script, rather > than within the patch. > > that is: instead of sending trying to send things like `[command 1 && command > 2 && command 3(`, create a wrapper script: > ``` > #!/bin/sh > for x in "$@"; do > command "$x" || exit $? > done > ``` > > and then call it as `[wrapperscript 1 2 3(` > > gfmasdr > IOhannes > --- > [email protected] - the Pure Data mailinglist > https://lists.iem.at/hyperkitty/list/[email protected]/message/UXP4P3DUFNERGXCK4IM5KTLYQJSG7YP5/ > > To unsubscribe send an email to [email protected] mailing list > UNSUBSCRIBE and account-management -> https://lists.iem.at/ > --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/2Q72PXRIOT7CM3Y3KWBIXP4ZTFBV5HNP/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
i think it is often easiest, to do the job control in your script, rather than within the patch. that is: instead of sending trying to send things like `[command 1 && command 2 && command 3(`, create a wrapper script: ``` #!/bin/sh for x in "$@"; do command "$x" || exit $? done ``` and then call it as `[wrapperscript 1 2 3(` gfmasdr IOhannes --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/UXP4P3DUFNERGXCK4IM5KTLYQJSG7YP5/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
This was with [shell], I have not been able to get back to RPI4 as of now to try [command] > Am 22.02.2026 um 21:19 schrieb Roman Haefeli : > > On Sun, 2026-02-22 at 15:00 +0100, Simon Iten wrote: >> Thanks, I tried that but got && command not found or similar. It >> seems as if the ampersand is also somehow not „tolerated“ in >> messages. I did not try to \ it yet… > > Is this with [command] or with [shell]? [command] simply executes plain > commands and doesn't do any form of shell expansion. This would explain > your observations. '&&' has no special meaning in Pd messages and is > regular symbol. > > Roman > --- > [email protected] - the Pure Data mailinglist > https://lists.iem.at/hyperkitty/list/[email protected]/message/ZMHFA67Z3V6UZBUDBMX32Q6RQMB4B322/ > > To unsubscribe send an email to [email protected] mailing list > UNSUBSCRIBE and account-management -> https://lists.iem.at/ --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/N63STCGOLJ4RKHVCK4VF6JJQITVKOIIO/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
On Sun, 2026-02-22 at 15:00 +0100, Simon Iten wrote: > Thanks, I tried that but got && command not found or similar. It > seems as if the ampersand is also somehow not „tolerated“ in > messages. I did not try to \ it yet… Is this with [command] or with [shell]? [command] simply executes plain commands and doesn't do any form of shell expansion. This would explain your observations. '&&' has no special meaning in Pd messages and is regular symbol. Roman signature.asc Description: This is a digitally signed message part --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/ZMHFA67Z3V6UZBUDBMX32Q6RQMB4B322/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
Thanks, I tried that but got && command not found or similar. It seems as if the ampersand is also somehow not „tolerated“ in messages. I did not try to \ it yet… > Am 22.02.2026 um 14:25 schrieb Dan Wilcox : > > You could also try appending separate commands with double ampersands as > with any shell: > > command 1 && command 2 && command 3 > > This should execute each sequentially, as long as the exit codes are > successful and no command runs in a loop. > > enohp ym morf tnes > --- > Dan Wilcox > danomatika.com > robotcowboy.com > > >> On Feb 22, 2026, at 2:27 AM, Simon Iten wrote: >> >> Thanks for the hints. In the meanwhile I „solved“ the issue by simply >> creating enough shell objects to run my commands separately :) this works >> very well for my application as well. Will checkout [command], thanks. >> >> >> Am 22.02.2026 um 02:20 schrieb Roman Haefeli : >>> On Sun, 2026-02-22 at 01:18 +0100, Simon Iten wrote: However if I send multiple pinctrl commands in a short timespan some are dropped. >>> >>> Yeah, [shell] can only execute one command at the time. When [shell] is >>> still busy with the last command, it'll simply ignore the current call. >>> >>> Anyway, you may want to try [command] which is a fork of [shell] with >>> more features. [command] outputs the exit code when the execution of >>> the command has completed. However, you still need to buffer your calls >>> so that they are executed one after another. You'll find [command] in >>> Deken. >>> Also, running pinctrl set 5.6.13 op dl for example does not work (it should pull low those three outputs at once and works in the terminal just fine) But PD also automagically adds spaces after the commas once the message box is not edited anymore. >>> >>> That's not a [shell] specific issue, but is how Pd parses messages in >>> general. A comma in message box is actually a delimiter for messages. >>> By using unescaped commas you actually create multiple messages >>> 'pinctrl set 5', '6', and '13 op dl'. >>> >>> 'exec pinctrl set 5\,6\,13 op dl' seems to work with [command] >>> Are these known limitations of shell or is there a workaround to run multiple commands at once? Adding & or ; to the end of the message sent to shell does not work... >>> >>> I don't know about &, but ';' is also a Pd delimiter for sending >>> messages. >>> >>> Roman >>> >>> --- >>> [email protected] - the Pure Data mailinglist >>> https://lists.iem.at/hyperkitty/list/[email protected]/message/H73WUW7EJCZHUG3YWZLTJAPJLW6ETM4P/ >>> >>> To unsubscribe send an email to [email protected] mailing list >>> UNSUBSCRIBE and account-management -> https://lists.iem.at/ >> >> >> --- >> [email protected] - the Pure Data mailinglist >> https://lists.iem.at/hyperkitty/list/[email protected]/message/6276YX23PTYOIQYVOPSK2NGGCALJ3TDK/ >> >> To unsubscribe send an email to [email protected] mailing list >> UNSUBSCRIBE and account-management -> https://lists.iem.at/ --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/62H3MVLJ755RZ6QDF7KWFH35LK35Q6CE/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
You could also try appending separate commands with double ampersands as with any shell: command 1 && command 2 && command 3 This should execute each sequentially, as long as the exit codes are successful and no command runs in a loop. enohp ym morf tnes --- Dan Wilcox danomatika.com robotcowboy.com > On Feb 22, 2026, at 2:27 AM, Simon Iten wrote: > > Thanks for the hints. In the meanwhile I „solved“ the issue by simply > creating enough shell objects to run my commands separately :) this works > very well for my application as well. Will checkout [command], thanks. > > > >> Am 22.02.2026 um 02:20 schrieb Roman Haefeli : >> >>> On Sun, 2026-02-22 at 01:18 +0100, Simon Iten wrote: >>> >>> However if I send multiple pinctrl commands in a short timespan some >>> are dropped. >> >> Yeah, [shell] can only execute one command at the time. When [shell] is >> still busy with the last command, it'll simply ignore the current call. >> >> Anyway, you may want to try [command] which is a fork of [shell] with >> more features. [command] outputs the exit code when the execution of >> the command has completed. However, you still need to buffer your calls >> so that they are executed one after another. You'll find [command] in >> Deken. >> >>> Also, running pinctrl set 5.6.13 op dl for example does not work (it >>> should pull low those three outputs at once and works in the terminal >>> just fine) But PD also automagically adds spaces after the commas >>> once the message box is not edited anymore. >> >> That's not a [shell] specific issue, but is how Pd parses messages in >> general. A comma in message box is actually a delimiter for messages. >> By using unescaped commas you actually create multiple messages >> 'pinctrl set 5', '6', and '13 op dl'. >> >> 'exec pinctrl set 5\,6\,13 op dl' seems to work with [command] >> >>> >>> Are these known limitations of shell or is there a workaround to run >>> multiple commands at once? Adding & or ; to the end of the message >>> sent to shell does not work... >> >> I don't know about &, but ';' is also a Pd delimiter for sending >> messages. >> >> Roman >> >> --- >> [email protected] - the Pure Data mailinglist >> https://lists.iem.at/hyperkitty/list/[email protected]/message/H73WUW7EJCZHUG3YWZLTJAPJLW6ETM4P/ >> >> To unsubscribe send an email to [email protected] mailing list >> UNSUBSCRIBE and account-management -> https://lists.iem.at/ > > > --- > [email protected] - the Pure Data mailinglist > https://lists.iem.at/hyperkitty/list/[email protected]/message/6276YX23PTYOIQYVOPSK2NGGCALJ3TDK/ > > To unsubscribe send an email to [email protected] mailing list > UNSUBSCRIBE and account-management -> https://lists.iem.at/ --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/R6UNFY22JVVPAKNV7Y7TVRZBVHJCEE4I/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
Thanks for the hints. In the meanwhile I „solved“ the issue by simply creating enough shell objects to run my commands separately :) this works very well for my application as well. Will checkout [command], thanks. > Am 22.02.2026 um 02:20 schrieb Roman Haefeli : > > On Sun, 2026-02-22 at 01:18 +0100, Simon Iten wrote: >> >> However if I send multiple pinctrl commands in a short timespan some >> are dropped. > > Yeah, [shell] can only execute one command at the time. When [shell] is > still busy with the last command, it'll simply ignore the current call. > > Anyway, you may want to try [command] which is a fork of [shell] with > more features. [command] outputs the exit code when the execution of > the command has completed. However, you still need to buffer your calls > so that they are executed one after another. You'll find [command] in > Deken. > >> Also, running pinctrl set 5.6.13 op dl for example does not work (it >> should pull low those three outputs at once and works in the terminal >> just fine) But PD also automagically adds spaces after the commas >> once the message box is not edited anymore. > > That's not a [shell] specific issue, but is how Pd parses messages in > general. A comma in message box is actually a delimiter for messages. > By using unescaped commas you actually create multiple messages > 'pinctrl set 5', '6', and '13 op dl'. > > 'exec pinctrl set 5\,6\,13 op dl' seems to work with [command] > >> >> Are these known limitations of shell or is there a workaround to run >> multiple commands at once? Adding & or ; to the end of the message >> sent to shell does not work... > > I don't know about &, but ';' is also a Pd delimiter for sending > messages. > > Roman > > --- > [email protected] - the Pure Data mailinglist > https://lists.iem.at/hyperkitty/list/[email protected]/message/H73WUW7EJCZHUG3YWZLTJAPJLW6ETM4P/ > > To unsubscribe send an email to [email protected] mailing list > UNSUBSCRIBE and account-management -> https://lists.iem.at/ --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/6276YX23PTYOIQYVOPSK2NGGCALJ3TDK/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
[PD] Re: shell object on Raspberry PI 4, GPIO control via pinctrl
On Sun, 2026-02-22 at 01:18 +0100, Simon Iten wrote: > > However if I send multiple pinctrl commands in a short timespan some > are dropped. Yeah, [shell] can only execute one command at the time. When [shell] is still busy with the last command, it'll simply ignore the current call. Anyway, you may want to try [command] which is a fork of [shell] with more features. [command] outputs the exit code when the execution of the command has completed. However, you still need to buffer your calls so that they are executed one after another. You'll find [command] in Deken. > Also, running pinctrl set 5.6.13 op dl for example does not work (it > should pull low those three outputs at once and works in the terminal > just fine) But PD also automagically adds spaces after the commas > once the message box is not edited anymore. That's not a [shell] specific issue, but is how Pd parses messages in general. A comma in message box is actually a delimiter for messages. By using unescaped commas you actually create multiple messages 'pinctrl set 5', '6', and '13 op dl'. 'exec pinctrl set 5\,6\,13 op dl' seems to work with [command] > > Are these known limitations of shell or is there a workaround to run > multiple commands at once? Adding & or ; to the end of the message > sent to shell does not work... I don't know about &, but ';' is also a Pd delimiter for sending messages. Roman signature.asc Description: This is a digitally signed message part --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/H73WUW7EJCZHUG3YWZLTJAPJLW6ETM4P/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
