[Gambas-user] Stopping a CLI program
    Tobias Boege 
    taboege at ...626...
       
    Sun Dec  8 18:06:39 CET 2013
    
    
  
On Sun, 08 Dec 2013, John Rose wrote:
> I want  to be able to stop a CLI program (started by an Exec statement) 
> as though the user was keying in a special character from the keyboard. 
> Specifically, I want to stop ffmpeg recording to disk when grabbing 
> streaming video using x11grab. The recording is stopped by the user 
> entering q if the program is started by entering ffmpeg (followed by its 
> parameters) in a Terminal. How is this done in Gambas3?
> 
I guess you can
Print #hFfmpeg, "q"
if you opened it For Output... However, in my project, I simply use
hFfmpeg.Kill() without losing any information.
Regards,
Tobi
-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
    
    
More information about the User
mailing list