--- Harry Putnam <[EMAIL PROTECTED]> wrote:
> Huiyuan Ma <[EMAIL PROTECTED]> writes:
>
> > > No,it has nothing to do with /etc/profile,just
> > another problem. :-)
> > If I have started a program(by clicking the icon
> or
> > something like that), is there anyway to stop it
> if it
> > couldn't pause itself or runs into an infinite
> loop?
> > Thanks a lot.
>
> You can `kill' it like this:
>
> Find the process id number (pid) by grepping the
> output of `ps waux' like
> this:
>
> ps waux|grep PROGRAMNAME
>
> Where PROGRAMNAME is either the full name of the
> program or a
> significant part of it.
> To avoid seeing your grep command in the output, put
> brackets around
> the first letter like this:
>
> ps waux|grep [P]ROGRAMNAME
>
> You'll see output like this:
>
> ps waux|grep [p]ppd
> root 7290 0.0 0.8 2024 1072 ttyS1 S
> 08:55 0:00 /usr/sbin/pppd modem crtscts
> defaultroute usehostname -detach use
>
> The number you see above (7290) is the pid. You can
> kill the program
> by saying:
>
> # kill -SIGTERM 7290 (that is a signal 15)
>
> Then recheck with the same `ps waux' command. If
> for some reason that
> doesn't kill it then you'll need the big hammer:
>
> # kill -9 7290
>
> To learn all the possible signals:
>
> $ kill -l
>
> Reading you *SHOULD* do before using the above
> technique:
>
> man ps
> man kill
>
> NOTE: If you didn't start the program, you may have
> to be root to kill it.
>
> Oh,I learn a lot.Thanks !
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list