'{print $2}' > $tmp_nginx_local_version 2>&1 nginx_local_version=cat $tmp_nginx_local_version datef...%m/%d %H:%M"; } custom log print_log(){ if [[ -d $log_dir ]];then echo "[$(datef...)] $1" >> $log else echo "[$(datef)] log path does not exist,created first" ...>>$log mkdir -p $log_dir echo "[$(datef)] $1" >> $log fi } 检查...= "0" ]];then print_log "[$(datef)] install_nginx(): install error!"
终端是否打印日志: 1打印 0不打印 is_log=0 #是否记录日志: 1记录 0不记录 file="serverlists.txt" iniFile="temp.ini" datef...M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } autoCreateCrtConnect
#日志文件 is_font=1 #终端是否打印日志: 1打印 0不打印 is_log=0 #是否记录日志: 1记录 0不记录 datef...:%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo "[ $(datef) ] $1" fi } check_dir(){ if [[ ! ...-d $basedir ]];then print_log "[ $(datef) ] 需要清理的目录不存在: $basedir" exit fi } static_sizes(){ size=...-d $mvdir ]];then echo "[ $(datef) ] 要移除文件的目的目录不存在: $basedir" exit fi else print_log "第五个参数[目的目录
#日志文件 is_font=1 #终端是否打印日志: 1打印 0不打印 is_log=0 #是否记录日志: 1记录 0不记录 datef...:%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo "[ $(datef) ] $1" fi } check_dir(){ if [[ ! ...-d $basedir ]];then print_log "[ $(datef) ] 需要检测的目录不存在: $basedir" exit fi } static_sizes(){ size=
ip_info="192.168.0.120 255.255.255.0 192.168.0.1" dnsgroup="25.25.25.1 223.5.5.5" device="Wi-Fi" datef...%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo "[ $(datef) ] $1" fi } wifi_action(){ case $1
-d yesterday +%Y-%m-%d) yesmonth=$(date -d yesterday +%Y-%m) host=x.x.x.x user=admin pass=xxxxxxx datef...%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } download(){ if [[ $host
记录 0不记录 restart_file=/data/scripts/run.sh #服务启动和关闭控制脚本 end_string="所有导数已经结束" #监控文件结束标识 #动态数据时间 datef...} #动态打印日志 print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo "[ $(datef) ] $1" fi } #检查目录 check_dir(){ if [...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo "[ $(datef) ] $1" fi } #检查文件...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo "[ $(datef) ] $1" fi } #检查目录 check_dir(){ if [
ADSL-callcenter" Cmd="get interface" from_name="运维组" from="530035210@qq.com" to="huanggm@baoxian.com" datef...%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } run() { if [[ $1 ==
mongodb_pakges="$PWD/mongodb-linux-x86_64-2.4.9.tgz" mongodb_conf=$PWD/mongodb.conf mongodb_init=$PWD/mongodb datef...%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } if [[ !
exec_stop="/etc/init.d/data-camp stop" #停应用命令 exec_start="/etc/init.d/data-camp start" #启动应用命令 datef...%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } #定义重启 derestart(){
#终端是否打印日志: 1打印 0不打印 is_log=0 #是否记录日志: 1记录 0不记录 random_time=$(date +%Y%m%d_%H%M%S) datef...:%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } #自动生成key addautoKey(...yes UseDNS no Subsystem sftp /usr/libexec/openssh/sftp-server AllowUsers $default_user" datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } #自动生成key addautoKey(
进程关键字 exec_stop="/etc/init.d/data-camp stop" #停应用命令 exec_start="/etc/init.d/data-camp start" #启动应用命令 datef...H:%M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } 定义重启 derestart(){ if
设置日期格式 NSDateFormatter *dateF = [[NSDateFormatter alloc]init]; [dateF setLocale...:locale]; [dateF setDateFormat:@"HH:mm"]; NSDate *date = [dateF dateFromString
终端是否打印日志: 1打印 0不打印 is_log=1 #是否记录日志: 1记录 0不记录 pingDes="223.5.5.5" #pingDes="8.8.8.8" datef...M:%S" } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } #H3C无线自动执行命令 #$1:无线IP
#日志文件 is_font=1 #终端是否打印日志: 1打印 0不打印 is_log=1 #是否记录日志: 1记录 0不记录 datef..." } print_log(){ if [[ $is_log -eq 1 ]];then [[ -d $logdir ]] || mkdir -p $logdir echo -e "[ $(datef...) ] $1" >> $log fi if [[ $is_font -eq 1 ]];then echo -e "[ $(datef) ] $1" fi } random=$(date "+%s")
dateD = format1.parse("2004-1-18 22:01:01"); Date dateE = format1.parse("2006-1-18 22:01:01"); Date dateF...= new SortOb("dd", 4,dateD); SortOb e = new SortOb("ff", 6,dateE); SortOb f = new SortOb("cc", 3,dateF
null -s -w %{http_code} https://$check_ip:$check_port/verdict/session/LSGJA5SSDD55974/latest/result) datef...() { date "+%Y/%m/%d %H:%M:%S" ; } print_to_log() { echo "[$(datef)] $1" >> $LOG ; } [[ -d $logdir
$Conf datef() { date "+%Y/%m/%d %H:%M" ; } print_to_log() { echo "$1" echo "[$(datef)] $1" >> $Install_log
领取专属 10元无门槛券
手把手带您无忧上云