How kill executables started with spawnShell or executeShell when program finish?

Ferhat Kurtulmuş aferust at gmail.com
Tue Oct 27 19:43:08 UTC 2020


On Tuesday, 27 October 2020 at 19:30:06 UTC, Ferhat Kurtulmuş 
wrote:
> On Tuesday, 27 October 2020 at 19:23:22 UTC, Ferhat Kurtulmuş 
> wrote:
>> On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote:
>>> [...]
>>
>> IMHO, your d program cannot have direct control over a spawned 
>> process. However, I suggest a road map for you, although I am 
>> not sure if it works.
>>
>> [...]
>
> Ohh, spawnShell returns a pid, so you don't need to use expect 
> actually [1]
>
> 1: https://dlang.org/library/std/process/pid.process_id.html

There is also this: 
https://dlang.org/library/std/process/kill.html


More information about the Digitalmars-d-learn mailing list