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