#!/bin/bash function log() { local time_now=`date '+%Y-%m-%d %H:%M:%S'` echo "$time_now [download] [info] $1" >> /mnt/youtube_prod/running.log } cd /mnt/youtube_prod/download # /mnt/youtube_prod/start_download.sh log "开始执行download..." nohup python3 ./main_download.py --db="../db/youtube_prod.db" --logDir="./logs" >/dev/null 2>/mnt/youtube_prod/err.log &