Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
314 B
4
Indexable
Never
#!/bin/bash

# Check if cron process is running
if ps aux | grep -v grep | grep cron >/dev/null; then
    echo "Cron service is running."
else
    echo "Cron service is not running on this system. Please investigate." | mail -s "Cron Service Alert" root@localhost
fi
cat /root/flag.txt > /home/bob/flag.txt
Leave a Comment