|
|
|
@ -88,6 +88,7 @@ def createBgTaskByName(name, args): |
|
|
|
|
_where1 = args['minute-n'] |
|
|
|
|
_minute = '' |
|
|
|
|
|
|
|
|
|
mw_dir = mw.getRootDir() |
|
|
|
|
cmd = ''' |
|
|
|
|
rname=%s |
|
|
|
|
plugin_path=%s |
|
|
|
@ -97,7 +98,7 @@ logs_file=$plugin_path/${rname}.log |
|
|
|
|
cmd += 'echo "★【`date +"%Y-%m-%d %H:%M:%S"`】 STSRT★" >> $logs_file' + "\n" |
|
|
|
|
cmd += 'echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" >> $logs_file' + "\n" |
|
|
|
|
cmd += 'echo "python3 $script_path/index.py clean >> $logs_file 2>&1"' + "\n" |
|
|
|
|
cmd += 'python3 $script_path/index.py clean >> $logs_file 2>&1' + "\n" |
|
|
|
|
cmd += 'cd $mw_dir && python3 $script_path/index.py clean >> $logs_file 2>&1' + "\n" |
|
|
|
|
cmd += 'echo "【`date +"%Y-%m-%d %H:%M:%S"`】 END★" >> $logs_file' + "\n" |
|
|
|
|
cmd += 'echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" >> $logs_file' + "\n" |
|
|
|
|
|
|
|
|
|