I am having executing a cron call, and I am lost on what could it be causing the issue.
I initially had a crontab setup like this:
00 09 * * 1-5 root /usr/bin/curl -k "http://localhost/notifications/cronRuleAction?&auth_id=some-uuid&password=somehash&action=action&type=type&sequence=User Sequence, User Sequence, User Sequence"
Which did not work, as I learned curl does not accept whitespaces. Then, I added %20
to replace the whitespaces on the sequence parameter, so the crontab looks like this:
00 09 * * 1-5 root /usr/bin/curl -k "http://localhost/notifications/cronRuleAction?&auth_id=some-uuid&password=somehash&action=action&type=type&sequence=User%20Sequence,User%20Sequence,User%20Sequence"
If I execute this curl command manually, it gets executed, the url code runs and everything works as expected. However, if I let the crontab run, the cron command stops at the first %20
character, the curl does not run and the code in the url is not executed.
This is a copy of the cron service status after triggering:
May 11 09:00:01 pc CROND[33215]: (root) CMDEND (/usr/bin/curl -k "http://localhost/notifications/cronRuleAction?&auth_id=some-uuid&password=somehash&action=action&type=type&sequence=User)
I tried to append an xdebug remote flag to debug, and as expected, if I remove the whitespace from the url, it triggers and my IDE opens the request, however if I add either a whitespace or its %20 equivalent, the curl is never triggered and the IDE never receives the debug request.
What can I do to ensure the curl does not cut on a whitespace or its %20 equivalent?