Cron Expression for Every Friday at 5 PM
Run a cron job every Friday at 5 PM using 0 17 * * 5. The end-of-week schedule for summaries, reports, and pre-weekend tasks.
Expression
0 17 * * 5 At 17:00 every Friday
Use Cases
- • Sending end-of-week summary reports
- • Running Friday afternoon cleanup jobs
- • Generating weekly metrics before the weekend
- • Triggering pre-weekend backup procedures
Code Examples
Crontab
# At 17:00 every Friday
0 17 * * 5 /path/to/your/script.sh GitHub Actions
name: Scheduled Job
on:
schedule:
- cron: '0 17 * * 5'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "Running Every Friday at 5 PM" systemd Timer
[Unit]
Description=Every Friday at 5 PM timer
[Timer]
OnCalendar=*-*-* *:*:00
Persistent=true
[Install]
WantedBy=timers.target Tips
- ✓ 5 PM is hour 17 in 24-hour cron format
- ✓ Friday is day 5 in the day-of-week field
- ✓ Pair with Monday at 9 AM for a full work-week cadence
- ✓ A natural time for "wrap up the week" automation
Frequently Asked Questions
How do I specify 5 PM Friday in cron?
Use 0 17 * * 5. The hour 17 is 5 PM in 24-hour format, and day 5 is Friday.
Can I run 30 minutes before end of day instead?
Yes, use 30 16 * * 5 to run at 4:30 PM every Friday.