T
ToolPrime

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

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

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.

Related Cron Expressions