# 加密货币智能体 crontab 配置示例 # 将以下内容添加到crontab中: crontab -e # 设置环境变量 SHELL=/bin/bash PATH=/usr/local/bin:/usr/bin:/bin PYTHONPATH=/path/to/your/cryptoai # 日志文件 LOGFILE=/path/to/your/cryptoai/logs/cron.log # 每天早上8:30运行加密货币智能体 30 8 * * * cd /path/to/your/cryptoai && python run.py --agent crypto --run-once >> $LOGFILE 2>&1 # 每天晚上20:30运行黄金智能体 30 20 * * * cd /path/to/your/cryptoai && python run.py --agent gold --run-once >> $LOGFILE 2>&1 # 每6小时运行一次加密货币智能体 0 */6 * * * cd /path/to/your/cryptoai && python run.py --agent crypto --run-once >> $LOGFILE 2>&1 # 每周一早上9点运行完整分析 0 9 * * 1 cd /path/to/your/cryptoai && python run.py --agent crypto --symbol BTCUSDT --days 90 >> $LOGFILE 2>&1 # 注意:使用前请将路径替换为您实际的项目路径