Setting Cron job at Bluehost

Permalink
Does anyone know hot to setup a cron job at Bluehost? I want to automate Index Search Engine - All

I used in the Commnad field:
http://www.domain.com/index.php/tools/required/jobs?auth=f693fff2e4...

but the confirmation email was:
/usr/local/cpanel/bin/jailshell:http://www.domain.com/index.php/tools/required/jobs?auth=f693fff2e4... No such file or directory

And clicking on the link in the above took me to a page with these results:

{"results":[{"error":0,"result":"Indexing complete. Index is up to date","jDateLastRun":"February 13, 2016 at 8:27:16 AM","jHandle":"index_search","jID":"1"},{"error":0,"result":"www.domain.com\/sitemap.xml<\/a> file saved (82 pages).","jDateLastRun":"February 13, 2016 at 8:27:16 AM","jHandle":"generate_sitemap","jID":"3"},{"error":0,"result":"The Job was run successfully.","jDateLastRun":"February 13, 2016 at 8:27:16 AM","jHandle":"process_email","jID":"4"},{"error":0,"result":"0 versions deleted from 3 pages (136,138,139)","jDateLastRun":"February 13, 2016 at 8:27:16 AM","jHandle":"remove_old_page_versions","jID":"5"}]}

So it looks to me like the sitemap.xml file was updated and not the search engine index.

I then tried in the Command line:
http://www.domain.com/index.php/tools/required/jobs/run_single?auth...

The confirmation email was:
/usr/local/cpanel/bin/jailshell:http://www.domain.com/index.php/tools/required/jobs/run_single?auth... No such file or directory

And clicking on the link in the above took me to a page with these results:

Access Denied

Anyone know how to get the job working correctly at Bluehost?

kreative
 
Tate204 replied on at Permalink Reply
Tate204
You may try webcron service like easycron.com, Some of Bluehost users I know are using it, works quite well and a tutorial with Concrete5 athttps://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-f... .
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Tate204

Is easycron.com your product or do you work for them?
kreative replied on at Permalink Reply
kreative
Thanks but I am looking for an answer on how to get it working without a third party service.
enlil replied on at Permalink Reply
enlil
I'm getting the same results on my end. It has to be on bluehost.

I've been on VPS there for some time now and things have gotten a bit sketchy lately. There have been a lot of changes and things like their one click installers (in my experience) are in a slight state of uh oh.

The latest one-click 5.6 install leaves open ends, like /avatars and /files folders missing etc.

For testing purposes, I tried the latest wordpress (as much as I hate saying it) one-click install. What do you know, that's not working either (AT ALL, as of about a week ago).

Patiently waiting for my monthly fee to provide some kind of consistency... :D
kreative replied on at Permalink Reply
kreative
Thanks for the heads up. My next call will probably be to BH support.
kreative replied on at Permalink Best Answer Reply
kreative
Bluehost support was able to help me figure this out. We needed to add curl to the beginning so the correct command for me is:

curlhttp://www.domain.com/index.php/tools/required/jobs?auth=f693fff2e4...
kreative replied on at Permalink Reply
kreative
should be a space after curl
gparke replied on at Permalink Reply
This only worked for me after wrapping the URL in quotes:
curl "http://www.example.com/path/to/jobs/run_single?auth=a15adlk82364-18902d92e9b512&jID=2"


I was able to test by running via secure shell (ssh).