[GRLUG] problem with pkill/killall
Eric Beversluis
ebever at researchintegration.org
Wed Sep 4 19:12:27 EDT 2013
My system has a problem in that its spawning multiple versions of a
command and never ending the earlier versions. Why it's doing so is the
next problem. But first I have to figure out how to kill them.
As nearly as I can tell from the web and the man pages, I should be able
to do that with 'pkill' or with 'killall', using part of the name.
The processes are:
root 27514 27508 0 18:20 ? 00:00:00 /bin/bash -c php
-f /var/www/virtual/vtiger.cyberacc.com/modules/CalendarSync/syncCalendarFromGA.php > /home/mundane/etc_cron_rept2.txt 2>&1
root 27517 27507 0 18:20 ? 00:00:00 /bin/bash -c php
-f /var/www/virtual/vtiger.cyberacc.com/modules/CalendarSync/syncCalendarFromVT.php > /home/mundane/etc_cron_rept2.txt 2>&1
So it seems I should be able to do:
pkill syncCalendarFrom
or killall syncCalendarFrom
and thus get rid of all of them. But neither seems to work.
Some of my efforts:
[root at server ~]# pkill syncCalendarFrom
[root at server ~]# pkill "-c php
-f /var/www/virtual/vtiger.server.com/modules/CalendarSync/syncCalendarFromGA.php > /home/mundane/etc_cron_rept2.txt 2>&1"
pkill: invalid option -- 'c'
Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s
SIDLIST]
[-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN]
[root at server ~]# pkill "php
-f /var/www/virtual/vtiger.server.com/modules/CalendarSync/syncCalendarFromGA.php > /home/mundane/etc_cron_rept2.txt 2>&1"
??
Thanks.
More information about the grlug
mailing list