Cron job URL open and close quotes for URL that has ampersand
Right now when setting up basic cron job with the type selection curl, the URL does not accept open and closing quotes that have an ampersand sign. I was having issues running basic cron jobs because the URL that had an ampersand sign, it escaped everything after that.
For example:
In the below URL when the basic cron job is setup, it escapes everything after &.
http://example.com/pages/link?id=1&name=josh
-
William Gerorge commented
Good point! When setting up a cron job with a URL that includes an ampersand, enclosing the entire URL in quotes is crucial to prevent the shell from misinterpreting it as a command separator. Using single quotes is usually safest, but double quotes work too—just make sure everything is wrapped properly so the URL runs as intended. http://niu.ws/