[Gambas-user] process.id

Matthias Laur matthias-laur at ...978...
Wed May 25 22:32:59 CEST 2005


Hi,

now I try it with the EXEC commands 

I want to make

cat /dev/video0 > /home/.../.../my.mpg

and type this code:

EXEC ["cat","/dev/video0",">","/home/.../.../my.mpg"] for read as myprocess

but it don't work. Please tell me the right exec code for this shell commands

thanks and regards,
Matthias
>
> I did that, and it works: (development version)
>
> PUBLIC SUB Main()
>
>   DIM hProcess AS Process
>
>   'hProcess = EXEC ["ls", "-laR", "/"]
>   hProcess = SHELL "ls -laR /" FOR READ
>
>   WAIT 2
>
>   PRINT "*************** KILL"
>   hProcess.Kill
>
>   WAIT 5
>
> END
>
> PUBLIC SUB Process_Read()
>
>   DIM sStr AS String
>
>   READ #LAST, sStr, Lof(LAST)
>   PRINT sStr;
>
> END
>
> The shell and the 'ls' command run during 2 seconds, and then they are
> stopped by the Kill method.
>
> Tell me if it works with your 'cat /dev/video...'
>
> Regards,




More information about the User mailing list