shell md5加密生成秘钥


#!/bin/bash
current=`date "+%Y%m%d%H%M%S"`  
source 引入配置文件/config1.sh
key=`echo -n $current$hash_key|md5sum|cut -d" " -f1`
status="`ps -ef |grep "curl 配置文件路径/async_delete_redis_set_code.php" | grep -v grep | wc -l`"
echo "配置文件路径/async_delete_redis_set_code.php?key=$key&time="$current
if [ $status -lt 1 ]
then
        nohup  curl "配置文件/async_delete_redis_set_code.php?key=$key&time="$current > /dev/null 2>&1 &
        echo '启动成功'
else
        echo '已经启动'
fi

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM