Hi pharoers,

I am playing with OSProcess.
I am using an example, and I am annoyed with a strange bug:

Here is the code I want to execute, and does not work:
====
|thread process output|
myCmd := 'rostopic bw /turtle1/pose'.
thread := [process := (PipeableOSProcess command: myCmd) ] fork.
3 second wait.
output := process upToEnd.
output inspect.
thread terminate.
===

'rostopic bw /turtle1/pose' is a command that is a loop displaying the
current bandwidth of a ROS process. In a terminal, it works fine. With
OSProcess the output value is empty.

My source code is correct: if I replace myCmd by :
myCmd := 'ping localhost'.

It is a loop too, and it returns a correct string.

I have clearly no idea of where I have to search... Any help or discussion
about that would be great :)

Thank you,

Oups, some infos:
I am using Ubuntu 14.04
Pharo3.0 with Moose 5.0, latest update: #30863
The script I use (rostopic) is a python script (does it impact ?)


-- 

~~Jannik Laval~~
École des Mines de Douai
Enseignant-chercheur
http://www.jannik-laval.eu
http://www.phratch.com
http://www.approchealpes.info
http://car.mines-douai.fr/

Reply via email to