[Gambas-user] Control-C and a Process

timothy timothy.marshal-nichols at ...247...
Sun Feb 4 10:26:45 CET 2007


Hello,

Is there a way of sending a Control-C to a process. I have declared the
process something like this: 

	PRIVATE MyProcess as Process

	...

	MyProcess = SHELL "MyCommand" FOR READ WRITE	

When it comes to quiting the process early the man page for the command
I am using recommends using a Control-C. I have tried things like: 

	Print #MyProcess, Chr(3)

and a few other variations, but these do not appear to work. In fact no
control codes appear to be usable. If all else fails I can Kill the
process. But this seems overkill - bad pun intended :-) 

Any ideas?

By the way I have just found the Quote.Shell method. I like this.

Thanks

8-{)} Timothy Marshal-Nichols
<mailto: timothy.marshal-nichols at ...247...>







More information about the User mailing list