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