One solution is to use the UNIX kill or killall commands.
If you know the process ID, you can open a terminal application and enter:
kill -SIGINT 415
(where 415 is the PID for this process)
Or maybe easier, you can enter
killall -SIGINT my_console_app
(where my_console_app is the name of your application, i.e. the name of the generated binary file, and not a set if it is in one)
This will send a signal to all instances of the application, as the name killall suggests, so it may be unacceptable. It might be worth checking if there are other processes with the same name that will be executed before you execute killall (;
source share