Friday, March 25, 2016

curl with Plesk 12 Cron Jobs

If you're using a curl based scheduled job in plesk, and your site requires Basic Auth (curl -u parameter) , make sure you escape % character. Just make it \%.

Otherwise you might see either syntax errors, or prematurely terminated command strings.

Common errors:
curl ->no url specified
curl -> unterminated quotes
curl->Syntax error

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...