added --list to list all recordings, --watch now watches the processing of the top 20 recordings
This commit is contained in:
parent
dc1819b8ca
commit
581c104afc
@ -37,16 +37,16 @@ mark_for_rebuild() {
|
|||||||
for type in $TYPES; do
|
for type in $TYPES; do
|
||||||
if [ -d $BASE/process/$type/$MEETING_ID ]; then
|
if [ -d $BASE/process/$type/$MEETING_ID ]; then
|
||||||
rm -rf $BASE/process/$type/$MEETING_ID
|
rm -rf $BASE/process/$type/$MEETING_ID
|
||||||
else
|
# else
|
||||||
echo "Warn: Didn't find $BASE/process/$type/$MEETING_ID"
|
# echo "Warn: Didn't find $BASE/process/$type/$MEETING_ID"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $STATUS/processed/$MEETING_ID-$type.done ]; then
|
if [ -f $STATUS/processed/$MEETING_ID-$type.done ]; then
|
||||||
rm $STATUS/processed/$MEETING_ID-$type.done
|
rm $STATUS/processed/$MEETING_ID-$type.done
|
||||||
else
|
# else
|
||||||
echo "Warn: Didn't find $STATUS/processed/$MEETING_ID-$type.done"
|
# echo "Warn: Didn't find $STATUS/processed/$MEETING_ID-$type.done"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $BASE/publish/$type/$MEETING_ID ]; then
|
if [ -d $BASE/publish/$type/$MEETING_ID ]; then
|
||||||
@ -84,8 +84,11 @@ usage() {
|
|||||||
echo "Configuration:"
|
echo "Configuration:"
|
||||||
echo " --version Display BigBlueButton version (packages)"
|
echo " --version Display BigBlueButton version (packages)"
|
||||||
echo
|
echo
|
||||||
|
echo "Reporting:"
|
||||||
|
echo " --list List all recordings"
|
||||||
|
echo
|
||||||
echo "Monitoring:"
|
echo "Monitoring:"
|
||||||
echo " --watch monitor processing of recordings: watch -n 2 \"bbb-record --watch\""
|
echo " --watch Watch processing of recordings"
|
||||||
echo " --rebuild [meetingID] rebuild the output for meetingID"
|
echo " --rebuild [meetingID] rebuild the output for meetingID"
|
||||||
echo " --deletall delete all meetings and recordings"
|
echo " --deletall delete all meetings and recordings"
|
||||||
echo
|
echo
|
||||||
@ -103,6 +106,17 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
if [ "$1" = "-list" -o "$1" = "--list" ]; then
|
||||||
|
LIST=1
|
||||||
|
shift
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if [ "$1" "--list20" ]; then
|
||||||
|
LIST=1
|
||||||
|
HEAD=20
|
||||||
|
shift
|
||||||
|
continue
|
||||||
|
fi
|
||||||
if [ "$1" = "-rebuild" -o "$1" = "--rebuild" ]; then
|
if [ "$1" = "-rebuild" -o "$1" = "--rebuild" ]; then
|
||||||
need_root
|
need_root
|
||||||
if [ ! -z "${2}" ]; then
|
if [ ! -z "${2}" ]; then
|
||||||
@ -176,7 +190,7 @@ if [ $DELETEALL ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $WATCH ]; then
|
if [ $LIST ]; then
|
||||||
|
|
||||||
|
|
||||||
#ps -fC god
|
#ps -fC god
|
||||||
@ -193,12 +207,17 @@ if [ $WATCH ]; then
|
|||||||
echo "MeetingID Time Slides Recorded Archived Processed Published Description"
|
echo "MeetingID Time Slides Recorded Archived Processed Published Description"
|
||||||
echo "------------------------------------------------------ ---------------------------- ------ -------- -------- -------------------- -------------------- -----------------------------"
|
echo "------------------------------------------------------ ---------------------------- ------ -------- -------- -------------------- -------------------- -----------------------------"
|
||||||
|
|
||||||
for meeting in $(ls -u /var/bigbluebutton | grep "[0-9]\{13\}$"); do
|
if [ -z $HEAD ]; then
|
||||||
|
# If we're not called with --list20, show all recordings
|
||||||
|
HEAD=99999
|
||||||
|
fi
|
||||||
|
|
||||||
|
for meeting in $(ls -u /var/bigbluebutton | grep "[0-9]\{13\}$" | head -n $HEAD); do
|
||||||
echo -n "$meeting"
|
echo -n "$meeting"
|
||||||
timestamp=$(echo $meeting | sed s/.*-//g)
|
timestamp=$(echo $meeting | sed s/.*-//g)
|
||||||
epoc=$(($timestamp/1000))
|
epoc=$(($timestamp/1000))
|
||||||
echo -n " "
|
echo -n " "
|
||||||
echo -n $(date --date "Jan 1, 1970 00:00:00 +0000 + $epoc seconds")
|
echo -n $(date --date "Jan 1, 1970 00:00:00 +0000 + $epoc seconds") | awk '{ printf("%-28s",$0) }'
|
||||||
|
|
||||||
printf "%7s" $(find /var/bigbluebutton/$meeting/$meeting -name "*.swf" | wc -l)
|
printf "%7s" $(find /var/bigbluebutton/$meeting/$meeting -name "*.swf" | wc -l)
|
||||||
#echo "/var/bigbluebutton/$meeting/$meeting"
|
#echo "/var/bigbluebutton/$meeting/$meeting"
|
||||||
@ -278,4 +297,6 @@ done
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $WATCH ]; then
|
||||||
|
watch -n 2 "bbb-record --list20"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user