#!/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/sftp # /mnt/youtube_prod/start_download.sh log "开始执行sftp..." python3 ./sftp.py --local="/mnt/tmp_srt_file" --logDir="./logs" rm -rf /mnt/tmp_srt_file