10
bahua
6y

#!/bin/bash

while :; do
ps -ef | grep -iq [s]ymantec && for i in `ps -ef | grep -i [s]ymantec | awk '{ print $2 }'`; do sudo kill -9 $i; done
sleep 1
done

Comments
  • 2
    @irene

    Because it brings even the most capable of computers to its knees.

    I made a mistake last night, closing the lid of my laptop when I left the office, instead of leaving it powered on but locked, so the scan could take place at its scheduled time of 8pm. So I will kill it until next monday.
  • 2
    while :; do ps -ef | awk '/[s]ymantec/ {print $2}' | while read pid ; do kill -9 ${pid} ; done; sleep 1; done
  • 1
    @netikras

    I was going to comment on the lack of sleep in your previous edit, but I thought it would be nitpicky.
  • 1
    @bahua I love seing occasional bash script in the rants :)
  • 1
    @bahua wait... Symantec on linux? Which product?
  • 0
    Are you looking for
    killall -9r symantec
  • 1
    Install Lin-oh wait...
  • 2
    @netikras

    It's a work machine. A mac. No such nonsense runs on my linux machines at home.
  • 0
    I understand this yet... I do not
Add Comment