I should add the line to /var/spool/cron/crontabs/root on my ESXi: /bin/echo
"0 3 * * 6 /ghettoVCB-master/ghettoVCB.sh -g /ghettoVCB-master/text.conf -f /ghettoVCB-master/text.list > /var/log/ghettoVCB-month-$(date +%m)-week-$((($(date +\%d)-1)/7+1)).log"
>>
/var/spool/cron/crontabs/root
.
But this comandline adds a reasult of $(date +%m)
and $((($(date +\%d)-1)/7+1))
.
How to add this line as a formula? Thanks in advance.