Adventure 1
Adventure 1
Adventure 1
Adventure 1
"Every morning at 8:00 AM, your AI automatically sends you a Telegram message: 'Good morning! 🌞 Today's study plan: Review Math Chapter 3, practice Python loops. You've got this! 💪'"
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
* * * * * command
│ │ │ │ │
│ │ │ │ └─ Day of week (0-7, Sun=0 or 7)
│ │ │ └─── Month (1-12)
│ │ └───── Day of month (1-31)
│ └─────── Hour (0-23)
└───────── Minute (0-59)Adventure 1
0 8 * * *0 = minute 0 (start of hour)8 = hour 8 (8 AM)* = any day of month* = any month* = any day of week0 8 * * * echo "Good morning!"Adventure 1
0 21 * * 1-5 echo "Time for bed!"1-5, which means Monday (1) through Friday (5). Weekends are excluded automatically! Notice 21 means 9 PM in 24-hour format.Adventure 1
0 12 1,15 * *1,15 means "on these specific days." Perfect for bi-weekly paychecks or monthly allowances!
Adventure 1
*/5 * * * * echo "Status check"*/5 means "every 5 units." This is incredibly useful for monitoring systems, checking for new messages, or keeping services running smoothly.*/10 for every 10 minutes, or */2 for every 2 minutes!Adventure 1
30 14 * * *0 0 * * 0*/15 * * * *Adventure 1
Adventure 1
crontab -enano (easiest) or vim (if you're feeling confident!).Adventure 1
* * * * * echo "Cron works! $(date)" >> ~/cron-test.logCtrl+X, then Y, then Enter.Adventure 1
cat ~/cron-test.logAdventure 1
~ points to your home directoryAdventure 1
Adventure 1
vim ~/morning-briefing.sh#!/bin/bash
openclaw agent --message "Send my owner a good morning message with today's date, an inspirational quote, and a reminder about today's study tasks."#!/bin/bash) tells Linux this is a bash script. The second line calls OpenClaw with a natural language instruction!Adventure 1
chmod +x ~/morning-briefing.sh+x flag means "make this executable." Now your script has the power to run like any other program!bash ~/morning-briefing.shAdventure 1
crontab -estudent1 with your username):0 8 * * * /home/student1/morning-briefing.shAdventure 1
Adventure 1
Adventure 1
0 21 * * * Every night at 9 PM, AI asks: "What did you learn today?"0 7 * * 1 Every Monday at 7 AM, get weekly goals and motivational boost0 * * * * Every hour, check if systems are running smoothly0 */2 * * * Every 2 hours during the day: "Time to drink water!"Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
8 * * * * (runs 8 times every hour!)0 8 * * * (runs once at 8 AM)morning-briefing.sh/home/student1/morning-briefing.shchmod +x your-script.sh>> logfile.txt to see output and debug issuesAdventure 1
bash your-script.sh work? If not, fix the script firstls -l your-script.sh and look for x in the permissions/var/log/syslog for cron execution messagesecho "Starting..." at the beginning of your scriptAdventure 1
Adventure 1
*/10 * * * * mean?Adventure 1
crontab -e opens the cron editor where you define all scheduled tasks30 15 * * * (remember: 15 = 3 PM in 24-hour time, 30 = minutes)chmod +x filename.sh adds executable permissionAdventure 1
Adventure 1
Adventure 1
Adventure 1