I have a web cms that allows so called action IDs which are urls. When you hit those, they perform some code in the cms.
So I wanted to perform an action periodically and used cron for that.

PROBLEM: The cron always ran at the defined time which can be tracked in the log but the action was never performed.

So I tested the thing in shell
The url is

When I use wget it cuts off "&id=6"
When I use curl it also cuts off "&id=6"

What can I do?


Wrap the URL in single-quotes. What is happening is that the ampersand is getting interpreted by the shell.

curl ''

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.