検索

【知恵袋用】cron.dailyで動かないスクリプトについて

動いてるスクリプト

FileName:ddns-client

#!/bin/sh
echo "#ipv4" > /var/log/ddns.log
wget -O- 'http://mydnshogehoge@ipv4.mydns.jp/login.html' --server-respons >> /var/log/ddns.log
echo "#ipv6" >> /var/log/ddns.log
wget -O- 'http://mydnshogehoge@ipv6.mydns.jp/login.html' --server-respons >> /var/log/ddns.log

動かないスクリプト

FileName:Ydl-CHlistdl

#!/bin/bash
declare -A list;
list=(
    ["/mnt/SMB/3TB_disk/踊ってみた/このは"]="https://www.youtube.com/user/arashi7ayaka/videos"
    ["/mnt/SMB/3TB_disk/踊ってみた/めりあ"]="https://www.youtube.com/channel/UC83lCom3_O-PLTUudt6itaw/videos"
    ["/mnt/SMB/3TB_disk/踊ってみた/羽音"]="https://www.youtube.com/channel/UCUzh1zf0fwseCTVXf6v824A/videos"
)

for i in ${!list[@]};
do
    mkdir -p $i
    youtube-dl -i "${list[$i]}" -o "$i/[%(uploader)s]%(title)s-%(display_id)s.mkv" --download-archive "$i/list.txt" --merge-output-format mkv
done

FileName:Ydl-bilibili-PBdl

#!/bin/bash
declare -A list;
#bilibili_ID
list=(
    ["/mnt/SMB/3TB_disk/踊ってみた/Tocci椭奇"]="7375428"
    ["/mnt/SMB/3TB_disk/踊ってみた/かみん"]="2851786"
)
for i in ${!list[@]};
do
    mkdir -p $i
    ID_list=(`python3 /etc/cron.daily/Python/bilibili-list-get/bilibili-list-get.py ${list[$i]}`)
    for j in ${ID_list[@]}; do
        youtube-dl -i "https://www.bilibili.com/video/av$j" -o "$i/[%(uploader)s]%(title)s-%(display_id)s.mkv" --download-archive "$i/list.txt" --merge-output-format mkv
    done
done

FileName:Dc-narou-rb-upd

#!/bin/bash
docker run --rm -v /home/UserName/Documents/narou.rb/:/novel -v /home/UserName/Documents/電子書籍/小説/Web小説_epub/:/mnt -it whiteleaf/narou narou u > /var/log/dc-narou-upd.log