learning shell monitor prog function】的更多相关文章

[Purpose]        Shell script monitor prog function   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure] Source code: #!/bin/bash while [ 1 ] do # get under /appServer/app directory prog numbers nprogs=`ls -t /appServer/app | cut -d" " -f1…
[Purpose]        Shell print function base on err info wrn ext output level   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure] Source code: #!/bin/bash DEST=/tmp mkdir -p /tmp/debug display_alert() #-------------------------------------------…
Shell built-in variables [Purpose]        Learning shell built-in variables, example $0,$1,$2,$3,$#,$$,$*,$@,$-,$?   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure] Source code: #!/bin/bash echo "shell args option" echo "script nam…
Shell args handing key=value example [Purpose]        Learning how to handing ker=value args   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure]        Source code: # Script parameters handling get left parameters and right value for i in "$@&…
Shell script prompt to run with superuser privileges [Purpose]        Check whether have root privileges to run script   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure] Source code: #!/bin/bash ]]; then echo "This script requires root privil…
Shell get script absolute path [Purpose]        Get shell script absolute path   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure] Source code: #!/bin/bash echo "$(dirname "$(realpath "${BASH_SOURCE}")")" echo "$(…
[Purpose]        Shell script check requires root privileges   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure] Source code:  #!/bin/bash ]]; then echo "This script requires root privileges, trying to use sudo" sudo "test.sh" &…
[Purpose]        Shell script check host dependent pkg   [Eevironment]        Ubuntu 16.04 bash env   [Procdeure] Source code:  dependent_pkg="gitk" for pkg in $dependent_pkg; do if ! dpkg-query -l $pkg | grep -q ii; then echo installing $pkg ..…
Unsupervised Learning: Use Cases Contents Visualization K-Means Clustering Transfer Learning K-Nearest Neighbors The features learned by deep neural networks can be used for the purposes of classification, clustering and regression. Neural nets are s…
转载自:https://github.com/liquanzhou/ops_doc    这里只作为笔记使用,不做他用 shell实例手册 0 说明{ 手册制作: 雪松 更新日期: 2018-09-11 欢迎系统运维加入Q群: 198173206 # 加群请回答问题 欢迎运维开发加入Q群: 365534424 # 不定期技术分享 请使用"notepad++"或其它编辑器打开此文档, "alt+0"将函数折叠后方便查阅 请勿删除信息, 转载请说明出处, 抵制不道德行为…