[Gambas-user] process.id

Benoit Minisini gambas at ...1...
Thu May 26 13:00:42 CEST 2005


On Wednesday 25 May 2005 22:32, Matthias Laur wrote:
> 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
>

Arrg! The 'cat /dev/video > ...' is a command that is *interpreted* by the 
shell.

When you use EXEC, you don't have any shell, you just call the command, and 
give it parameters.

You have to get the output of EXEC [ "cat", "/dev/video0" ] and put it in the 
destination file with Gambas.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list