If your system has it (I believe most do), just use pkill:
I have backslash escaped the dot so that it is no longer a wildcard, but a literal dot. Also, I have anchored the expression to preclude substring matches. The chances that the more permissive pattern used throughout this thread will have an unfortunate effect is most likely negligible, but I draw attention to it for completeness' sake.
Regards,
Alister
---------- Post updated at 06:00 PM ---------- Previous update was at 05:57 PM ----------
Quote:
Originally Posted by Chubler_XL
How about using -u param of ps and here I combine two greps and awk into 1 awk script:
Depending on the platform, that may not be an option. From a *BSD ps:
Quote:
-u Display information associated with the following keywords: user,
pid, %cpu, %mem, vsz, rss, tt, state, start, time, and command.
The -u option implies the -r option.
Hi All,
I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.
How can i terminate this daemon ? ? ?
Regards,
Vijay Hegde (3 Replies)
Hi all
i have simple c program , when i wish to kill the app
im using kill(0,-9) , but it seams this command don't do any thing and the program.
just ignore it .
what im doing wrong here ?
im using HP-UX ia64
Thanks (9 Replies)
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Soz im a bit newbie...
I want to do:
ps -A | grep firefox | kill $1
it should kill the pid associated, but it doesnt work.
$1 is the pid (if i do a awk {'print $1'} i get it ) , but kill doesnt take it as such...
How can i do it? (3 Replies)
Hi
I want to write a shell script which can find the process id's of all the process and kill them eg:
ps ax | grep rv_
3015 ? S 0:00 /home/vivek/Desktop/rv_server
3020 ? S 0:00 /home/vivek/Desktop/rv_gps
3022 ? S 0:00 /home/vivek/Desktop/rv_show
... (7 Replies)
Hi
I have the process to kill regulary, but the PSID is dymatic change and not sure how to kill the specific process ID
Check the tradekast_rvd is running , if such process, kill the els process id
ps -e f |grep tradekast_rvd
ps -ef |grep els
then I kill els process id
... (2 Replies)
Hi,
I need something unusual, I guess. I need to start a process, and if that process displays a specific error message, I need to kill that process and restart it.
Something like:
startprocess | grep -i "This is the specific error message" && kill $pidof(startprocess)
Explanation, I need... (4 Replies)
Hello everyone,
I have a process that I want to kill. I have tried kill-9 PID but it doesn't work. I have tried preap PID but it doesn't work too.
The parent of my process is the process whose PID is 1, so I can't kill it.
My OS is a Solaris 9.
Can anyone help me understand what's going... (3 Replies)
Hi,
Do anybody experience to write a bash script in order to kill a specific process (java) after certain time of running?
eg.
java java.jar task_run.txt
I will run a java program (java.jar) which will run a long list of process (task_run.txt) one by one.
I plan to terminate the java... (5 Replies)
Discussion started by: perl_beginner
5 Replies
LEARN ABOUT DEBIAN
pvmfkill
KILL(3PVM) PVM Version 3.4 KILL(3PVM)NAME
pvm_kill - Terminates a specified PVM process.
SYNOPSIS
C int info = pvm_kill( int tid )
Fortran call pvmfkill( tid, info )
PARAMETERS
tid Integer task identifier of the PVM process to be killed (not yourself).
info Integer status code returned by the routine. Values less than zero indicate an error.
DESCRIPTION
The routine pvm_kill sends a terminate (SIGTERM) signal to the PVM process identified by tid. In the case of multiprocessors the terminate
signal is replaced with a host dependent method for killing a process. If pvm_kill is successful, info will be 0. If some error occurs
then info will be < 0.
pvm_kill is not designed to kill the calling process. To kill yourself in C call pvm_exit() followed by exit(). To kill yourself in For-
tran call pvmfexit followed by stop.
EXAMPLES
C:
info = pvm_kill( tid );
Fortran:
CALL PVMFKILL( TID, INFO )
ERRORS
These error conditions can be returned by pvm_kill
PvmBadParam
giving an invalid tid value.
PvmSysErr
pvmd not responding.
SEE ALSO pvm_exit(3PVM), pvm_halt(3PVM)
30 August, 1993 KILL(3PVM)