首页 极刻 圈子 教程 开源
极客社区
写文章 发极刻 建圈子 发项目
标签 checkpid 相关标签 linux app classpath echo grep

[非常简单]Linux下启动java程序的通用脚本sh(可用作开机启动service脚本)

!!then echo"================================" echo"warn:$APP_MAINCLASSalreadystarted!then echo"$APP_MAINCLASSisrunning!;

zjhqlmzldx 2011-11-07 08:22:16

Linux shell 检查进程PID

$1 函数的第一个参数,如: checkPid test , 则: $1 = test,$0 = checkPid test。grep 查找文件里符合条件的字符串。ps x | grep $1 显示包含关键字'$1'的程序状况。

jeffery00 2008-09-16 23:25:52

推荐极客

Blaze Blaze 80407013 80407013 fundebug fundebug 81293313 81293313 87627995 87627995 88916570 88916570 84214254 84214254 86593278 86593278

优质内容社区

首页 文章 极刻 开源 标签 关于我们

© 安科网. All rights reserved.