Alex,
Thanks for your reply,
I know about xkill, but i don't want to interact my
GUI (Mouse) to kill any application. If i want to use
Mouse then i can kill application by directly clicking
on the close button.
The thing is i want to kill application fully from
console without any interaction.
--- Alex Catullo <freelance0(a)gmail.com> wrote:
Did you try xkill?
Run it in a seperate terminal as a normal user.
-Alex Catullo
On 9/30/05, Ankit Patel <ankit644(a)yahoo.com> wrote:
> I have run the "hwbrowser" from the menu. Then i
tried
> to kill hwbrowser from terminal.
>
> 1.kill pid_of_hwbrowser
>
> --> This command kills only binary (hwbrowser) run
by
> the normal user, not the main application because
> there are many (3) processes running along with
> hwbrowser. and they are.
>
> [ankit@ankit ~]$ ps -aux | grep hwbrowser
> Warning: bad syntax, perhaps a bogus '-'? See
> /usr/share/doc/procps-3.2.3/FAQ
> ankit 6355 1.0 1.5 18460 8108 pts/2 S
> 12:38 0:00 hwbrowser
> root 6356 0.0 0.2 7472 1396 pts/2 S
> 12:38 0:00 /usr/sbin/userhelper -w hwbrowser
> root 6360 0.0 0.1 6772 952 pts/2 S
> 12:38 0:00 /bin/sh
/usr/share/hwbrowser/hwbrowser
> root 6361 8.1 3.3 28276 16976 pts/2 S
> 12:38 0:01 /usr/bin/python
> /usr/share/hwbrowser/DeviceList.py
> ankit 6370 0.0 0.1 5816 660 pts/2 R+
> 12:39 0:00 grep hwbrowser
> [ankit@ankit ~]$
>
> 2. So, i thought i need to kill all other
processes
> also along with hwbrowser. So,
>
> [ankit@ankit ~]$ killall -g hwbrowser
> [1]+ Terminated hwbrowser
> [ankit@ankit ~]$ ps -aux | grep hwbrowser
> Warning: bad syntax, perhaps a bogus '-'? See
> /usr/share/doc/procps-3.2.3/FAQ
> root 6360 0.0 0.1 6772 952 pts/2 S
> 12:38 0:00 /bin/sh
/usr/share/hwbrowser/hwbrowser
> root 6361 1.2 3.3 28276 16976 pts/2 S
> 12:38 0:01 /usr/bin/python
> /usr/share/hwbrowser/DeviceList.py
> ankit 6373 0.0 0.1 4652 656 pts/2 R+
> 12:40 0:00 grep hwbrowser
>
> Still gui of hwbrowser running.
> If you have run hwbrowser from Menu (gui) then -->
All
> other gui applications closed and gnome-panel
> restarted.
> If you have run hwbrowser from same terminal
(console)
> then --> Other gui applications and gnome-panel
will
> not get affected.
>
> 3. So, finally i thought i need to be root to kill
all
> the instances of hwbrowser. And,
>
> [root@ankit ~]# ps -aux | grep hwbrowser
> Warning: bad syntax, perhaps a bogus '-'? See
> /usr/share/doc/procps-3.2.3/FAQ
> root 6412 0.0 0.1 4656 668 pts/2 S+
> 12:47 0:00 grep hwbrowser
> [root@ankit ~]#
>
> Now hwbrowser killed fully...
> If you have run hwbrowser from Menu (gui) then -->
All
> other gui applications closed and gnome-panel
> restarted.
> If you have run hwbrowser from same terminal
(console)
> then --> Other gui applications and gnome-panel
will
> not get affected.
>
>
> This is not specific to hwbrowser only but most of
the
> applications created in python included in
fedora-core
> software.
>
>
> So, i want to know is there any solution to kill
> hwbrowser(which have been running from Menu(gui)
not
> from the same terminal) without affecting other
> applications?
>
>
Thank You!
Ankit Patel
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com