You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
626 B
9 lines
626 B
# Tongge Active Learning - 每小时学习 (7-23 点 香港时区 UTC+8) |
|
SHELL=/bin/bash |
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/www/server/nodejs/v24.13.1/bin |
|
TZ=Asia/Hong_Kong |
|
|
|
# 香港时区 7-23 点,每小时触发 |
|
# 系统时区是 UTC,所以需要转换:香港 7-23 点 = UTC 23:00(前一日)-15:00 |
|
# 简单方案:脚本内部判断香港时区,cron 每小时都触发 |
|
0 * * * * root bash -c 'set -a; source /root/.openclaw-tongge/.env; set +a; exec /www/server/nodejs/v24.13.1/bin/node /root/.openclaw/workspace/skills/active-learning/learn.js' >> /var/log/tongge-learning.log 2>&1
|
|
|