Results 1 to 4 of 4

Thread: Die the perfect kill-9?

  1. #1
    Member registered user
    Join Date
    Mar 2004
    Location
    Buenos Aires, Argentina
    Posts
    79

    Die the perfect kill-9?

    To me is very handly for those multi-treadh apps...

    Code for die
    Code:
    #!/bin/bash
    kill -9 `ps aex | grep $1 | grep -v grep | awk '(print $1}'`
    Instead of kill -9 pid...you can do "die appname"

    Ex: die xmms

  2. #2
    Senior Member registered user
    Join Date
    Jun 2003
    Location
    Piraeus / Hellas
    Posts
    121
    What about pkill xmms for example ???

  3. #3
    Member registered user
    Join Date
    Mar 2004
    Location
    Buenos Aires, Argentina
    Posts
    79
    Quote Originally Posted by mikekgr
    What about pkill xmms for example ???
    I didn't know ! Thanks for the info :P pgrep is a nice command to learn too

  4. #4
    Senior Member registered user
    Join Date
    Oct 2004
    Location
    london town
    Posts
    220
    or
    Code:
    "kill `pidof xmms`
    would kill all xmms programs

    and
    Code:
     kill `pidof -s xmms`
    should kill off

Similar Threads

  1. MiniKnoppix 2.0 - Almost Perfect, But...
    By HateSpitLove in forum Customising & Remastering
    Replies: 11
    Last Post: 06-12-2004, 01:44 AM
  2. Kill...
    By KnoppiXRuleZ in forum General Support
    Replies: 0
    Last Post: 03-03-2004, 03:10 AM
  3. Replies: 0
    Last Post: 11-16-2003, 06:01 PM
  4. Perfect Linux box
    By m0rpheus in forum The Lounge
    Replies: 3
    Last Post: 03-30-2003, 01:56 AM
  5. Knoppix a base for perfect Newbie Linux ?!
    By MichielioZ in forum Ideas
    Replies: 3
    Last Post: 02-17-2003, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡ picture

🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡

$109.99



Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P picture

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P

$149.99



Juniper EX4400-EM-4S expansion modules picture

Juniper EX4400-EM-4S expansion modules

$599.00



Juniper Networks EX3400-24T 24-Port Ethernet Switch w/Power Cord picture

Juniper Networks EX3400-24T 24-Port Ethernet Switch w/Power Cord

$174.99



Juniper MX204 +JUNOS and Dual Power Supply picture

Juniper MX204 +JUNOS and Dual Power Supply

$7299.99



Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p Discounted Cosmetic picture

Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p Discounted Cosmetic

$79.86



Juniper Networks AP33-US Indoor Wifi6 (US Version) 5GHz: 4x4:4; 2.99 picture

Juniper Networks AP33-US Indoor Wifi6 (US Version) 5GHz: 4x4:4; 2.99

$24.99



Juniper QFX5120-48Y-AFO 48 x 1/10/25GB SFP28 + 8 x 40/100GB Switch w/Dual AC picture

Juniper QFX5120-48Y-AFO 48 x 1/10/25GB SFP28 + 8 x 40/100GB Switch w/Dual AC

$8999.99



Juniper EX3400-24P 24-Port PoE+ GbE + 4-Port 1/10Gb SFP Switch picture

Juniper EX3400-24P 24-Port PoE+ GbE + 4-Port 1/10Gb SFP Switch

$245.00



Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch picture

Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch

$79.99