79583159

Date: 2025-04-20 08:14:29
Score: 1.5
Natty:
Report link

crontab seems to support declaring variables upfront and substituting them

so this works for me:

SHELL=/bin/bash

log=/var/log/crontab/crontab.

dom=/bin/date +%a.%Y%m%d

ymd=/bin/date +%Y-%m-%d

and use that in

0 12 * * * wget https://example.com/example\_$($ymd)\_file.ext >> $log$($dom).log 2>&1

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30320998