[Gambas-user] Stopping a CLI program

Tobias Boege taboege at ...626...
Wed Dec 11 15:19:21 CET 2013


On Wed, 11 Dec 2013, John Rose wrote:
> Tobias,
> 
> Thank you for your reply.
> 
> The reason for my using "-f x11grab" as one parameter (rather than 2 
> parameters of  "-f" & "x11grab") to the Exec command is that I was 
> thinking of that string as being one parameter to ffmpeg. It would help 
> if the documentation had an Exec example with these type of parameters 
> as Unix command line programs often use parameters consisting of a 
> hyphen followed by a letter followed by a value.
> 

There is. To the bottom of the page, we have

Exec ["ls", "-la", "/tmp"] Wait

which is exactly this pattern.

Regards,
Tobi




More information about the User mailing list