[Gambas-user] process.id
Benoit Minisini
gambas at ...1...
Thu May 19 10:57:32 CEST 2005
On Thursday 19 May 2005 10:31, Matthias Laur wrote:
> 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
Wow! What's that incredible thing? 8-(
Can you send me your complete project? I have to be sure that the same thing
happens on my box...
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list