← back to Rentv Sheet Enrich Refine

oc_run.sh

19 lines

#!/bin/bash
# Autonomous $0 LOCAL openclaw company-LinkedIn grind over the 619 has-website-no-LI
# companies (oc_00..oc_12), propagating to all tabs every 3 batches. No agent spawn,
# no Anthropic rate-limiter. Logs to oc_run.log.
cd ~/Projects/rentv-sheet-enrich
n=0
for f in data/ocbatches/oc_[0-9][0-9].json; do
  echo "=== $(basename $f) $(date +%H:%M:%S) ===" >> oc_run.log
  python3 local_li.py "$f" >> oc_run.log 2>&1
  n=$((n+1))
  if [ $((n % 3)) -eq 0 ]; then
    echo "--- propagate (after $n batches) ---" >> oc_run.log
    python3 propagate.py >> oc_run.log 2>&1
  fi
done
echo "--- final propagate ---" >> oc_run.log
python3 propagate.py >> oc_run.log 2>&1
echo "ALL OPENCLAW LI BATCHES DONE $(date +%H:%M:%S)" >> oc_run.log