# wl **Repository Path**: lfs-org/wl ## Basic Information - **Project Name**: wl - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-10-18 - **Last Updated**: 2025-11-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README import schedule import time import subprocess def run_script(): """执行shell脚本的函数""" try: subprocess.run(["/bin/bash", "/path/to/your/script.sh"]) print(f"脚本执行完成 - {time.strftime('%Y-%m-%d %H:%M:%S')}") except Exception as e: print(f"执行出错: {e}") # 每天00:00执行 schedule.every().day.at("00:00").do(run_script) print("定时任务已启动,等待执行...") while True: schedule.run_pending() time.sleep(1)