#!/bin/bash # Test script to verify the automated cron setup works correctly echo "Testing automated cron setup..." # Check if the automated setup script exists if [ ! -f "setup_embedding_cron_auto.sh" ]; then echo "Error: setup_embedding_cron_auto.sh not found" exit 1 fi echo "✓ Automated setup script exists" # Make it executable chmod +x setup_embedding_cron_auto.sh echo "✓ Made script executable" # Check if crontab is available if ! command -v crontab &> /dev/null; then echo "Error: crontab is not available" exit 1 fi echo "✓ crontab is available" # Show current crontab (should be empty or minimal) echo "Current crontab entries:" crontab -l 2>/dev/null || echo "No crontab entries found" echo "Test completed successfully!" echo "Run 'chmod +x setup_embedding_cron_auto.sh && ./setup_embedding_cron_auto.sh' to actually set up the cron job"