Skip to content

Exit codes ? #96

Answered by Breakthrough
sundeepgoel72 asked this question in Q&A
Aug 17, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

DVR-Scan always returns 0 after successfully processing videos, and only returns non-zero when an error occurred. This is typically what exit codes should be used for, not to convey information like number of detected events (if any). I would suggest searching the command output for the text "No motion events detected in input." On Windows, you can do this using the findstr command.

If you are so inclined, you could also modify the run_dvr_scan() function in cli/controller.py for your particular use case. Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sundeepgoel72
Comment options

Answer selected by sundeepgoel72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants