Set cron with password?

Most of the scripts cron run from admin section and we are settings cron without admin section login details due to that cron never be run.We can set the cron with the admin section login details.Mostly we prefer curl to set the authentication cron because most of the servers blocking wget/lynx command.Simply we can set the cron with the following syntax.

/usr/bin/curl http://support:1q2w3e@www.yourdomain.com/test_script/cron.php

If you don’t want to receive cron result in E-mail then refer following sytax

/usr/bin/curl http://support:1q2w3e@www.yourdomain.com/test_script/cron.php  > /dev/null 2>&1

About Anant 373 Articles
Senior technical writer