hello, it became necessary to use kroon for my site, I hadn’t dealt with it before, so I’m pretty bad at it
Somehow I managed to configure crontab to run a get request for a php file every minute
here's the code itself
SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details see man 4 crontabs # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed */1 * * * * root wget -O - -q -t 1 'https://mysite.com/core/common.php?query' but the essence of the problem is that the task is executed only if the code looks like this:
SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details see man 4 crontabs # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed */1 * * * * root wget -O - -q -t 1 'https://mysite.com/core/common.php?query' * * * * * user-name command to be executed that is, if in addition to the first line, there is still some kind of line (even if it is empty), then everything works, if 1 task is not, and there are no errors in the crown logs, what kind of nonsense? thank
lfcharacter to the end of the file ( line feed , it’s also\n, the hexadecimal value is0a) - aleksandr barakin