xkill.sh脚本

xkill.sh脚本
/*
    当os中存在名称一样的多个进程时,如何快速杀掉这些进程,可以用过如下脚本实现.
*/

#!/bin/bash

pids=`jps | grep $1 | awk ‘{pring $1}‘`

for pid in $pids ; do
    kill -9 $pid
done
时间: 2024-08-01 12:40:46

xkill.sh脚本的相关文章

为微信小程序开发做准备,在Centos 6.8下利用letsencrypt.sh脚本为nginx 配置免费https证书

原文链接: http://phpecshop.blog.51cto.com/6296699/1891737 最近在做微信小程序商城开发的时候,阅读官方api文档发现要求https,的路程. wx.request(OBJECT) wx.request发起的是 HTTPS 请求. 于是开始了在Centos 6.8下利用letsencrypt.sh脚本为nginx 配置免费https(Let's Encrypt SSL证书) 1.下载letsencrypt.sh # wget https://raw.

安装GRID时跑root.sh脚本报错(ORA-27091: unable to queue I/O)

在安装GRID过程中,运行root.sh脚本时报如下信息: Adding Clusterware entries to upstart CRS-2672: Attempting to start 'ora.mdnsd' on 'rac11g1' CRS-2676: Start of 'ora.mdnsd' on 'rac11g1' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'rac11g1' CRS-2676: Start of

MySQL MHA之 master_ip_failover.sh脚本

master_ip_failover.sh脚本是用perl编写的,可以在mha-manager源码包中可以找到,下面给出的结合keepalived进行自动切换的脚本: [[email protected] scripts]# cat master_ip_failover.sh#!/usr/bin/env perl#  Copyright (C) 2011 DeNA Co.,Ltd.##  This program is free software; you can redistribute it

inotify.sh脚本范例

inotify.sh脚本范例 [[email protected] ~]# cat /server/scripts/inotify.sh#!/bin/bash#parahost01=192.168.1.111src=/dingjiandst=dingjianuser=rsync_backuprsync_passfile=/etc/rsync.passwordinotify_home=/usr/local/inotify-tools-3.14/ #judgeif [ ! -e "$src"

Linux crontab的使用方式,sh脚本的编写,sh脚本自动启动tomcat服务器,sh监控系统运行情况

1.如果想使用Linux crontab(类似java quartz),需要先启动crontab.关于crontab的启动.关闭.重启.重新载入配置的方式如下: /sbin/service crond start //启动服务 /sbin/service crond stop //关闭服务 /sbin/service crond restart //重启服务 /sbin/service crond reload //重新载入配置 2.crontab的命令介绍: A:添加crontab的命令是:c

linux第一个C语言和sh脚本

linux第一个C语言 $ gedit hello_world.c #include <stdio.h> int main(void) { printf("hello world!\n"); return 0; } 保存后使用 gcc 生成可执行文件: $ gcc -o hello_world hello_world.c gcc 生成二进制文件默认具有可执行权限,不需要修改 ,然后直接执行即可 linux 第一个sh脚本文件 先创建脚本文件:gedit hello_shel

rac_进行grid自检时提示运行runfixup.sh脚本一例

原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明下面出处,否则追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/40779253 环境:CentOS 6.4 64bit.grid 64bit.oracle11g 64bit 简述: 安装grid之前,手工进行环境检验,例如以下提示须要运行runfixup.sh脚本,下面将此 过程展现例如以下: [[email protected]

linux下sh脚本定时删除文件

一.sh脚本如下: #!/bin/sh location="/home/sharedir/" find $location -mtime +30 -type f |xargs rm -f 保存命名为del.sh 另外两种查找相关文件的方法如下: 1)find  /home/sharedir/  -mtime +30 -type f -name *.gz 2)find  /home/sharedir/  -mtime +30 -type f |xargs 二.使用crontab -e 定

RAC安装GI时运行root.sh脚本结果

第一节点运行root.sh脚本的结果: # /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= oragrid ORACLE_HOME= /u01/app/11.2.0/grid Enter the full pathname of the local bin director