a cron job launcher for ffmpeg-myth.scm

This commit is contained in:
Leo Butler authored and Leo Butler committed 2020-07-27 17:33:47 -05:00
1 parent 37a2c8df05
commit 4335a8d9dd
1 file changed
+17
Executable
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -aex
export LANG=en_US.UTF-8
unset -v LANGUAGE
working_dir=${working_dir:-"/mnt/lvraid5/ffmpeg-cut-list.d"}
error_log=${error_log:-"user-job-$(date +'%Y-%m-%d-%H%M').err"}
outpt_log=${error_log/err/log}
debug=${debug:-"eval ionice -c 3 "}
ffmpeg_myth_scm=${ffmpeg_myth_scm:-"/usr/local/bin/ffmpeg-myth.scm"}
job=${job:-"ffmpeg-myth-do-pending-jobs 4"}
cmd="$ffmpeg_myth_scm $job"
(cd "$working_dir" && printenv && $debug $cmd) >> $working_dir/$outpt_log 2>> $working_dir/$error_log