Skip to content

Commit

Permalink
task目录编译成功后自动删除
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Apr 13, 2022
1 parent 83fca62 commit c023926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BT-Task
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ import os
os.chdir("/www/server/panel")
os.system("cd task && make")
os.system("chmod 700 /www/server/panel/BT-Task")
os.system("/www/server/panel/BT-Task &")
os.system("/www/server/panel/BT-Task &")
if os.path.getsize("/www/server/panel/BT-Task") > 4096:
os.system("rm -rf /www/server/panel/task")

0 comments on commit c023926

Please sign in to comment.