[Gambas-user] process.id
Daniel Campos
daniel.campos at ...338...
Thu May 19 11:05:46 CEST 2005
May be you can use:
Shell “kill -9 “ & myprocess.id
Regards,
D. Campos
Matthias Laur escribió:
> Hello,
>
> I want to store a mpg file from s-video-in for 10 sec with the
> following command
>
> Shell “cat /dev/video0 > myfile.mpg” AS myprocess
>
> Wait (10)
>
> myprocess.kill
>
> But after then the process was still alive.
>
> Then I try:
>
> Shell “kill “ & myprocess.id
>
> With no access. The process was still alive.
>
> Then I saw that the number that myprocess.id returns was 1 lower then
> the number that the command “fuser /dev/video0” in the bash returns.
>
> So at last I try:
>
> Shell “kill “ & cstr(myprocess.id +1)
>
> And it works. Can you tell me why?
>
> I’m using Gambas 1.0.6
>
> Greets from Hamburg
>
> Matthias
>
More information about the User
mailing list