Comment-out streamed crontab entry
This commit is contained in:
1 parent
fa8b5aea6f
commit
d5443e9eaf
3 files changed
+12
-9
No files matched your search
@@ -23,3 +23,6 @@ set -o pipefail # to get ffmpeg's returncode
|
||||
ffmpeg -re -y -i "$in" -c:v copy -c:a copy -f flv "$rtmp" |tail -n 20 >"$in.log" &&
|
||||
rm "$in.log" "$in" "${in%.mp4}" ||
|
||||
echo "Error while streaming $1" >>"$log"
|
||||
|
||||
# In any case, comment-out the crontab entry so it's not waiting for next year
|
||||
crontab -l| sed "/$1/ s/^/#/" |crontab -
|
||||
Reference in new issue
Block a user