.sh文件内容例如musicformat.sh文件
#!/bin/sh
ps -fe|grep run_format_process.php |grep -v grep
if [ $? -ne 0 ]
then
php /home/wwwroot/handleformatmusic/run_format_process.php
else
echo "runing....."
fi
run_format_process.php文件内容
<?php
require 'php-sdk/autoload.php';
use Qiniu\Auth;
use Qiniu\Storage\UploadManager;
$accessKey = '1212NVh77Mfefsdfse77Lg5AjrvaAST-k';
$secretKey = '232334-3Vf555651XWAuolUQPTei_ZbzD';
$mysqli = mysqli_connect('rm-sde21odg.mysql.rds.aliyuncs.com','root','123456','text');
// $sql_find_music='SELECT id,excel_import,file_url,UUID,center_id FROM vf_music where UUID!="" and file_url!="" and file_url like "%wav"';
$sql_find_music='SELECT id,excel_import,file_url,UUID,center_id FROM vf_music where UUID!="