Sabine,
I did not yet tested OSProcess but with OSSubprocess (in 5.0) I cannot reproduce the issue:
Polling strategy works:
Delay delaySchedulerClass: DelayMillisecondScheduler.
20 timesRepeat: [OSSUnixSubprocess new
command: 'echo';
arguments: {��
' };
redirectStdout;
runAndWaitPollingEvery: (Delay forMilliseconds: 50) retrievingStreams: true onExitDo: [
�� �� �� :process :outString :errString |
�� �� �� Transcript show: outString;cr .
�� ].
].
Semaphore-based (child watcher) works:
Delay delaySchedulerClass: DelayMillisecondScheduler.
20 timesRepeat: [OSSUnixSubprocess new
command: 'echo';
arguments: { 'Hi There' };
redirectStdout;
runAndWaitOnExitDo: [ ��
�� �� �� :process :outString :errString |
�� �� �� Transcript show: outString;cr .
�� ].
].
Using shellCommand: (bash) instead of #command: and #arguments: does work too:
Delay delaySchedulerClass: DelayMillisecondScheduler.
20 timesRepeat: [OSSUnixSubprocess new
shellCommand: ('echo "Hi there"');
redirectStdout;
runAndWaitOnExitDo: [ ��
�� �� �� :process :outString :errString |
�� �� �� Transcript show: outString;cr .
�� ].
].