Files
bilive/start.sh
2025-04-11 17:25:09 +08:00

23 lines
552 B
Bash
Executable File

#!/bin/bash
LOGS_DIR="./logs"
SUBDIRS=("record" "runtime" "scan" "upload")
for subdir in "${SUBDIRS[@]}"; do
FULL_PATH="$LOGS_DIR/$subdir"
if [ ! -d "$FULL_PATH" ]; then
mkdir -p "$FULL_PATH"
echo "Created directory: $FULL_PATH"
else
echo "Directory already exists: $FULL_PATH"
fi
done
# Run the record script
./record.sh
# Start the scan process in the background
nohup python -m src.burn.scan > ./logs/scan/scan-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Start the upload process
exec python -m src.upload.upload