I'd like to be able to evaluate the execution of the MediaConch CLI through the use of exit status codes. Using return codes would simplify Bash implementations of the MediaConch CLI by allowing the execution of MediaConch to be part of a conditional statement directly, e.g. if mediaconch -p policy.xml file.mkv; then...
Currently, MediaConch returns the same code, 0, for pass, fail, and error. To evaluate the pass/ fail/ error status of the execution, we have to parse the output text.
I think the following exit codes would suit my needs just fine:
0 = file passes validation
1 = file fails validation
2 = error in execution of MediaConch
You all are the best, thank you!
I'd like to be able to evaluate the execution of the MediaConch CLI through the use of exit status codes. Using return codes would simplify Bash implementations of the MediaConch CLI by allowing the execution of MediaConch to be part of a conditional statement directly, e.g.
if mediaconch -p policy.xml file.mkv; then...Currently, MediaConch returns the same code, 0, for pass, fail, and error. To evaluate the pass/ fail/ error status of the execution, we have to parse the output text.
I think the following exit codes would suit my needs just fine:
0 = file passes validation
1 = file fails validation
2 = error in execution of MediaConch
You all are the best, thank you!