Sponsored Content
Operating Systems AIX killing a process from a script Post 73329 by Just Ice on Tuesday 31st of May 2005 08:27:47 AM
Old 05-31-2005
or my personal favorite ... will kill all instances of restbyname ...

kill -9 `ps -ef | awk '/restbyname/ && !/awk/ {print $2}'`
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

killing process using a script

can I do ps -ef | grep <process_name> and kill the process is it exists? and send a mail to me that the process was found and killed Thanks much... KS (4 Replies)
Discussion started by: skotapal
4 Replies

2. Shell Programming and Scripting

Killing a process from perl script.

How do I kill a process, say by name "drec" from a perl script. I tried with : ps -eaf | grep drec | awk '{print $2}' | xargs kill -9. The output I got is : ps -eaf | grep drec | awk '{print }' | xargs kill -9 /usr/bin/kill: ipgen: Arguments must be %job or process ids {But, $2 is not... (3 Replies)
Discussion started by: sharuvman
3 Replies

3. Shell Programming and Scripting

While killing the process, Script gets hanged. Please help me on this.

Hi Everyone, I have written a script to automate the docbase cleanup process on every weekly basis. That is in this script i have to shutdown the docbase and then kill all the process that are hanged except one process(epic process) and need to delete some log files and then i have to start the... (8 Replies)
Discussion started by: Sheethal
8 Replies

4. Shell Programming and Scripting

script not killing process!

i am using script to connect remotly to server and run some commands , one of these commands is to kill some process but tried different ways with no hope sshpass -p 'pass' ssh -o StrictHostKeyChecking=no server kill -9 `pgrep procs` getting error message "kill: bad argument count" ... (2 Replies)
Discussion started by: mogabr
2 Replies

5. Shell Programming and Scripting

**need help for killing a process through script**

Hello All, i hope you are fine. I need a little help from you people-- inside a script i want to kill a parent process by checking it with the child process.. p_pid=`ps -e | awk '/ra_cmd_d/ {print$1}'` here i am selecting the child process id in p_pid. next-- sleep_pid=`ps -af |... (3 Replies)
Discussion started by: onlyniladri
3 Replies

6. Homework & Coursework Questions

Unix Script -- To Skip killing a specific process

Hi, By using ps -aux | awk '/mine/{split($15,a,"/");print $1,$2,a}' i get the below listed PID's with there corresponding processes. adm 1522 ABC_Process.tra adm 1939 GENE_Process.tra adm 2729 GENE_Archive.tra adm 3259 xyz_Process.tra I use ps -aux | awk... (5 Replies)
Discussion started by: murali1687
5 Replies

7. Shell Programming and Scripting

script killing a process from service status output

Hello, can some please suggest a script, for killing the process PID. This are steps I am currently performing to kill the process. I cant user service splunk stop, to kill these processes, because of uid and gid mismatch for splunk user. # service splunk status Splunk status: splunkd... (8 Replies)
Discussion started by: bobby320
8 Replies

8. Shell Programming and Scripting

Killing a bash process and running the second part of script

I want to run a script that calls remote ssh and if it gets hung, I want to be able to kill that part of the script and run another command in the script for example I have a statement like this: if ]; then export tapes=$(for tape in $(su - nacct -c 'ssh remote1 "cat... (1 Reply)
Discussion started by: newbie2010
1 Replies

9. Shell Programming and Scripting

Automated Script for Process killing

Hello all, I'm in need of a Script which needs to wait for all the child process to end and then kill the main process. I have a process called mainpp which runs for different instances like evpn, nge, gmn etc so when i query for mainpp process it looks like below. bash-3.2$ ps -eaf |... (6 Replies)
Discussion started by: Mahesh_RPM
6 Replies

10. Shell Programming and Scripting

Killing the process if running for long time in script

I am running a script which will read the data from fail line by line and call the Java program by providing the arguments from the each line. The Java code is working fast for few records and for some records its getting hanged not providing response for morethan one hour. Currently am... (4 Replies)
Discussion started by: dineshaila
4 Replies
ndmpstat(1M)						  System Administration Commands					      ndmpstat(1M)

NAME
ndmpstat - show NDMP backup progress statistics SYNOPSIS
ndmpstat [tapes] [interval [count]] DESCRIPTION
The ndmpstat utility reports Network Data Management Protocol (NDMP) statistics, among which are NDMP worker threads, disk IO, tape IO, files operation, performance, and backup activity. ndmpstat reports the aggregate statistics for all tapes and disks. In order to obtain statistics for specific tape devices, the tape device name should be passed as argument to the utility. When invoked, ndmpstat begins its display with a one-line summary of the NDMP daemon activity since the NDMP service was invoked. Display Fields The fields in ndmpstat output are described as follows: wthr Report the number of worker threads in each of the four following states: r the number of worker threads running w the number of blocked worker threads that are waiting for resources such as I/O and paging b the number of backup operations currently running r the number of restore operations currently running file Report on usage of filesystem. rd the number of files being read wr the number of files being written disk Report the number of disk operations per interval. rd the number of disk blocks being read wr the number of disk blocks being written tape Report the number of tape operations per interval. There are slots for up to four tapes, labeled with a single number. The number indi- cates the name of the device under /dev/rmt. rd the number of tape blocks being read wr the number of tape blocks being written bytes Report the number of bytes transferred. This is the aggregate value of both tape and disk devices. The number is in kilobytes. rd the number of kilobytes being read wr the number of kilobytes being written perf Displays a rough estimate of performance of the backup/restore operation in megabytes per second. bk backup performance rs restore performance prcnt Display the comparative usage of resources, in percent. dsk disk I/O time tpe tape I/O time otr other time (memory or idle) See EXAMPLES. OPERANDS
The following operands are supported: count Specifies the number of times that the statistics display is repeated. tape Specifies which tapes are to be given priority in the output. A command line is limited to a maximum of four tape devices. A common tape name is /dev/rmt/n, where n is an integer. interval Specifies the number of seconds over which ndmpstat summarizes activity. The specified interval remains in effect till the com- mand is terminated. EXAMPLES
Example 1 Using ndmpstat The following command displays a summary of NDMP daemon activity at five-second intervals. example% ndmpstat 5 wthr file disk tape bytes perf prcnt r w b r rd wr rd wr rd wr rd wr bk rs dsk tpe otr 1 0 3 6 50 9 1250 0 32544 4455 42335 3234 5 4 20 40 40 1 0 0 1 1 0 128 0 0 128 64 64 1 0 0 80 20 1 0 0 1 2 0 128 0 0 0 64 0 1 0 80 0 20 1 0 0 1 1 0 128 0 0 0 64 0 1 0 80 0 20 1 0 0 1 3 0 128 0 0 0 64 0 0 0 80 0 20 1 0 0 1 1 0 128 0 0 128 64 64 1 0 0 80 20 ^C example% ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWndmpu | +-----------------------------+-----------------------------+ |Interface Stability |See below | +-----------------------------+-----------------------------+ Invocation is evolving. Human readable output is unstable. SEE ALSO
iostat(1M), mpstat(1M), ndmpd(1M), ndmpadm(1M), attributes(5) NOTES
Performance numbers are not accurate and are rounded up at the MB/sec. boundary. SunOS 5.11 21 Jun 2007 ndmpstat(1M)
All times are GMT -4. The time now is 06:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy