启动脚本

start.sh

#!/bin/bash

nohup <command> > /dev/null 2>&1 & echo $! > command.ppid

停止脚本

#!/bin/bash

ppid=`cat command.ppid`

ps -o pid --ppid $ppid --no-heading | awk '{print$1}' | xargs -I {} kill {}

最新文章

  1. R语言爬虫初尝试-基于RVEST包学习
  2. 关于JSP页面字段属性设为disabled或者readonly所带来的问题总结
  3. 在网页中制作icon图标
  4. 关于location
  5. 无刷新分页 Ajax,JQuery,Json
  6. pycharm+QT4的helloworld
  7. HDU 1051:Wooden Sticks
  8. 设计模式学习--Factory Method
  9. Spring data mongodb ObjectId ,根据id日期条件查询,省略@CreatedDate注解
  10. A Proof of Stake Design Philosophy - PoS权益证明设计理念
  11. Excel 日期截取(函数)
  12. linux查找并替换命令
  13. Python基础知识:字符串
  14. .NET Core Tools for Visual Studio 2015 安装失败
  15. Java总结:字符串详解
  16. Android Dragger2快速入门浅析
  17. 【技术分享会】 iOS开发简述
  18. Netty源码分析第5章(ByteBuf)----&gt;第6节: 命中缓存的分配
  19. cxGrid使用汇总
  20. 〖Linux〗Ubuntu13.10中使用虚拟机对MTK手机进行线刷

热门文章

  1. Kubernetes 网络模型基础指南
  2. C++ MFC学习 (六)
  3. [Unity]关于Unity中的触摸类Input.Touch以及简单的虚拟摇杆实现
  4. vue.use的原理
  5. QT 连接SQLIte数据库
  6. vue父子组件传值的方式
  7. ubuntu配置phpmyadmin
  8. postman-增加全局环境变量
  9. xrdp 启动分析
  10. Mysql 字符集的设置和修改