terminate hello (gui) application from terminal

majid
hi

how can I terminate hello (gui) application from terminal? I want to use it
in a bash file

b.r.

Slash
First get the name of the process from the terminal using ps. You will
probably get 'hello'.
use "pidof hello" to get the process id of hello. For example 1234.
then use "kill -9 1234" to kill it.

Other way, once you get the process name, use:
killall -9 hello

This will kill all processes by the name hello.

Good luck.