This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/usr/bin/bash | |
| #======alipay==== | |
| > /projects/daemon/common-audit/alipay/cmd.txt | |
| ftp -in<<EOF | |
| o 10.252.xxx.xxx | |
| user gmccthirdpaxxx Tdy274xxx | |
| prompt off | |
| bin | |
| passive | |
| cd /data/ecop/thirdpayment/target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| this_pid=$$ | |
| #this_pid 将自身脚本进程过滤 | |
| while [[ true ]]; do | |
| ps -ef | grep mysql | grep -v grep | grep -v $this_pid &> /dev/null | |
| if [[ $? -eq 0 ]]; then | |
| echo "Myql is running well" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| FILE_NAME=~/Destop/my.cnf | |
| function get_all_segment | |
| { | |
| echo "`sed -n '/\[.*\]/p' $FILE_NAME | sed -e 's/\[//g' -e 's/\]//g'`" | |
| } | |
| function count_iterms_in_segment |
NewerOlder