LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2004, 06:32 PM   #1
freaker2k5
LQ Newbie
 
Registered: Aug 2004
Location: Israel
Posts: 19

Rep: Reputation: 0
Question 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]) ?
 
Old 10-25-2004, 06:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
skill -9 opera

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


Cheers,
Tink

Last edited by Tinkster; 10-25-2004 at 06:57 PM.
 
Old 10-25-2004, 07:17 PM   #3
freaker2k5
LQ Newbie
 
Registered: Aug 2004
Location: Israel
Posts: 19

Original Poster
Rep: Reputation: 0
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]).
 
Old 10-25-2004, 07:28 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 10-26-2004, 04:19 AM   #5
freaker2k5
LQ Newbie
 
Registered: Aug 2004
Location: Israel
Posts: 19

Original Poster
Rep: Reputation: 0
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 ?

Last edited by freaker2k5; 10-26-2004 at 05:00 AM.
 
Old 10-26-2004, 01:05 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So close... yet, so very far! rookworm Debian 4 10-25-2005 10:34 PM
so close! need your help! zippo85 Linux - Wireless Networking 1 12-08-2004 12:04 PM
So Close inescapeableus Linux - Newbie 6 03-20-2004 12:56 AM
So close yet still so far. raid517 Linux - Software 6 07-05-2003 12:26 PM
Help - So close but yet so far!! Nubell Linux - Newbie 15 01-22-2003 06:38 PM


All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration