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

 

posted @ 2021-09-30 11:16  slnngk  阅读(56)  评论(0编辑  收藏  举报