New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Quote/quotes in cronjob

Started by redy, March 06, 2020, 04:59:41 PM

Previous topic - Next topic

redy

Can anyone tell me, how to add cron job with quote/quotes within command ?
Right now, when I put new cron job from user, quote/quotes will get escaped.
Example:

wget -q -O - "https://example.com/system/jobs/run_single?auth=f27e083fdc05a20474eafa808d430a1c&jID=11" >/dev/null 2>&1

will saved like this:

wget -q -O - \"https://example.com/system/jobs/run_single?auth=f27e083fdc05a20474eafa808d430a1c&jID=11\" >/dev/null 2>&1

Which was just can't read by the system.
Note: quotes is needed because there a '&' symbol in url.