RunProgram()
Posted: Wed Feb 18, 2004 9:59 pm
Hi!
This question was ask in the german forum from somebody. I tried it out and got the same problem. It's the following:
Using the RunProgram() function in Linux starts the external program but doesn't quits it. So at least until the PB program is quited. Here is an example code:
So it opens the echo programm and then goes into a endless loop. The Flag of the RunProgram() function is set to "Wait until the launched program quits". So normally the endless loop should start after the echo program quits. But calling "ps aux" in a console shows that the echo program runs. ([echo <defunc>])
If I quit the PB programm with strg+c the echo programm also stops. But this is of course not wanted. So could this be a bug of PB or is it a "bug" in my thoughts?
best regards,
Christian
This question was ask in the german forum from somebody. I tried it out and got the same problem. It's the following:
Using the RunProgram() function in Linux starts the external program but doesn't quits it. So at least until the PB program is quited. Here is an example code:
Code: Select all
S$="hallo"
If RunProgram("/bin/echo",S$,"",1) = 0
MessageRequester("Error","Programm konnte nicht gestartet werden!",0)
End
EndIf
Repeat
ForEver
If I quit the PB programm with strg+c the echo programm also stops. But this is of course not wanted. So could this be a bug of PB or is it a "bug" in my thoughts?
best regards,
Christian