shell查看redis 连接数分布
#!/bin/bash host=$1 port=$2 echo $host: $port redi… 继续阅读 shell查看redis 连接数分布
#!/bin/bash host=$1 port=$2 echo $host: $port redi… 继续阅读 shell查看redis 连接数分布
import os ret = os.popen(‘curl cip.cc’).read() pri… 继续阅读 Python os exec 执行shell命令
function SendMessageToDingding() { curl https://oa… 继续阅读 shell调用钉钉告警 变量处理
#!/bin/sh a=1 b=2 if [ $a -gt $b ];then echo a big… 继续阅读 shell数字比较
shell脚本是在win下编写的,每行结尾是\r\n Unix 结果行是\n 所以在Linux下运行… 继续阅读 shell脚本执行错误 $’\r’:command not found
在 Unix 系统上无法直接通过 ssh 客户端执行 bash 别名 别名命令找不到 ssh use… 继续阅读 ssh执行远程服务器的命令别名
time是 BASH shell 中内建的关键字 [root@server ~]# which ti… 继续阅读 time命令
find /path/for/file -type d -mtime +20|xargs rm -r… 继续阅读 用find只保留20天的备份
#!/bin/sh #通过传入ip 以及端口,发送指令获得返回数据 #copyright cheng… 继续阅读 通过shell脚本重定向实现监控memcache状态
变量 说明 $$ Shell本身的PID(ProcessID) $! Shell最后运行的后台Pro… 继续阅读 Shell脚本 $0, $#, $*, $@, $?, $$等特殊变量
增加任务时候下拉选择shell 右键-操作中GLUE IDE可以编辑shell 编辑: 执行日志:
<?php // 安全验证字符串,为空则不验证 $token = ‘123456’; // p… 继续阅读 php webhook
<?php // 安全验证字符串,为空则不验证 $token = ‘123456’; // p… 继续阅读 php webhook git钩子
vim /usr/local/php/etc/php.ini 去掉shell_exec disabl… 继续阅读 php的disable_functions例如开启shell_exec
修改php.ini文件 禁用函数列表中去掉exec disable_functions = proc… 继续阅读 php中开启exec,system等函数调用系统命令
字符串示例var=http://www.test.com/123.htm 删除左边字符,保留右边字符… 继续阅读 shell字符串截取
adb shell settings put secure icon_blacklist rotat… 继续阅读 原生 Android 10 隐藏状态栏闹钟图标
source是/bin/bash的内建命令,不是linux命令,所以在PATH里面是找不到的。 使用… 继续阅读 在jenkins shell下使用source命令
shell traveDir.sh #! /bin/bash function read_dir()… 继续阅读 shell遍历目录
创建随机字符串 head -c 512 /dev/urandom | LC_CTYPE=C tr -… 继续阅读 shell密码生成器