Hi Mariano, Great, I will try this tomorrow! Regards Sabine Am Mittwoch, 8. Juni 2016 schrieb Mariano Martinez Peck [via Smalltalk] :
> 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 . > ]. > ]. > > On Wed, Jun 8, 2016 at 3:11 PM, Sabine Manaa <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4900000&i=0>> wrote: > >> Hi Mariano, >> >> if you take the download Image from the Pharo website, then load >> commandShell and then zinc from the catalog browser and then do >> >> Delay delaySchedulerClass: DelayMillisecondScheduler. >> and then >> 20 timesRepeat: [OSProcess command: ('echo "Hi there"').] >> >> Then you will get the lock. >> >> Does this help to find the reason for the problem? >> >> Regards >> Sabine >> > > > > -- > Mariano > http://marianopeck.wordpress.com > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://forum.world.st/OSProcess-command-non-responding-image-when-calling-often-tp4899540p4900000.html > To start a new topic under Pharo Smalltalk Users, email > ml-node+s1294792n1310670...@n4.nabble.com > <javascript:_e(%7B%7D,'cvml','ml-node%2bs1294792n1310670...@n4.nabble.com');> > To unsubscribe from Pharo Smalltalk Users, click here > <http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1310670&code=bWFuYWEuc2FiaW5lQGdtYWlsLmNvbXwxMzEwNjcwfC0xOTE3OTcxOTg5> > . > NAML > <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://forum.world.st/OSProcess-command-non-responding-image-when-calling-often-tp4899540p4900004.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.