LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to close a prossess by name ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-close-a-prossess-by-name-247248/)

freaker2k5 10-25-2004 06:32 PM

How to close a prossess by name ?
 
Hello,
I have Mandrake 9.2,
and also I have a little question,
if i open Opera for example by the command '# opera'
How can I "kill" opera by name (like the command TASKKILL in windows CMD [without /F - force]) ?

Tinkster 10-25-2004 06:39 PM

skill -9 opera

(-2 if you want to aski it politely to terminate
itself ... )


Cheers,
Tink

freaker2k5 10-25-2004 07:17 PM

tnx, but still it kills the prossess, and i need it to be "closed" (as if i closed it maqnually [with the mose or Esc]).

Tinkster 10-25-2004 07:28 PM

Try a few others ...
Code:

$ kill -l
 1) SIGHUP      2) SIGINT      3) SIGQUIT      4) SIGILL
 5) SIGTRAP      6) SIGABRT      7) SIGBUS      8) SIGFPE
 9) SIGKILL    10) SIGUSR1    11) SIGSEGV    12) SIGUSR2
13) SIGPIPE    14) SIGALRM    15) SIGTERM    17) SIGCHLD
18) SIGCONT    19) SIGSTOP    20) SIGTSTP    21) SIGTTIN
22) SIGTTOU    23) SIGURG      24) SIGXCPU    25) SIGXFSZ
26) SIGVTALRM  27) SIGPROF    28) SIGWINCH    29) SIGIO
30) SIGPWR      31) SIGSYS


Happy hunting!

If none of those do the trick it's programmed crappily,
and there's nothing we can do.



Cheers,
Tink

freaker2k5 10-26-2004 04:19 AM

Sorry, but that doesn't seem to do what i need.
I shell explain myself like this:
What is the most harmless way to close a prossess by name in the comand line ?

note : for example, Opera opens the a spesific window (that i don't want it to open) after its prossess being "killed" .
How can i close it not kill ?

Tinkster 10-26-2004 01:05 PM

A process that's being killed displays a window?

Sorry, I don't understand what you're saying, or
trying to achieve.

Are you just trying to suppress the opening of
a window?



Cheers,
Tink


All times are GMT -5. The time now is 05:07 PM.