mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-28 12:24:50 +02:00
update 6.5.1
This commit is contained in:
+2
-2
@@ -419,8 +419,8 @@ echo "--------------------------------------------------------------------------
|
||||
def StartTask(self,get):
|
||||
echo = public.M('crontab').where('id=?',(get.id,)).getField('echo');
|
||||
execstr = public.GetConfigValue('setup_path') + '/cron/' + echo;
|
||||
os.system('chmod +x ' + execstr)
|
||||
os.system('nohup ' + execstr + ' >> ' + execstr + '.log 2>&1 &');
|
||||
public.ExecShell('chmod +x ' + execstr)
|
||||
public.ExecShell('nohup ' + execstr + ' >> ' + execstr + '.log 2>&1 &');
|
||||
return public.returnMsg(True,'CRONTAB_TASK_EXEC')
|
||||
|
||||
#获取计划任务文件位置
|
||||
|
||||
Reference in New Issue
Block a user