Files
html/api/weval-b2b-cron.sh
2026-04-12 22:57:03 +02:00

14 lines
469 B
Bash
Executable File

#!/bin/bash
# B2B Lead enrichment cron — 4x daily
cd /var/www/html/api
python3 -c "
import subprocess,time
# Run B2B email finder if available
try:
result = subprocess.run(['python3','/var/www/html/api/pw_b2b_email.py'], timeout=300, capture_output=True, text=True)
print(f'B2B email finder: {result.returncode}')
except Exception as e:
print(f'B2B skip: {e}')
print(f'B2B cron done at {time.strftime("%Y-%m-%d %H:%M")}')
" >> /var/log/weval-b2b.log 2>&1