crontab下执行python沙盒环境的脚本

(python37-venv) [yeemiao@yeemiao-oracle-9e96168-prd scripts]$ more sync_cratedbdata_to_clickhouse_temp.sh
#!/bin/bash

source /etc/profile
source /home/yeemiao/cmdb/python37-venv/bin/activate
python /home/yeemiao/scripts/sync_cratedb/sync_createdb_to_ck_bysecond1001.py
原文地址:https://www.cnblogs.com/hxlasky/p/15355908.html