How to configure cron job for self-directed automation

1 year 3 months ago #1 by Chris Paschen
(sorry for all the questions ... hoping that maybe this will help others who are new get going as well)

I have my own server and want to run everything internally - including running via my own local cron job.

1) I've followed the instructions and completed the online form for a cron job with ID only, and it generated the ID
2) I've downloaded the file as indicated

However, I'm not finding exactly what I need to do next.

If I create a cron job as */10 * * * * ... and have it run the downloaded file via curl, will that make it work and run the processes every 10 minutes?
Do I need to do something with that ID that was generated (other than enter it in the field in the component where it is indicated)?

Please Log in or Create an account to join the conversation.

1 year 3 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic How to configure cron job for self-directed automation
Hello Chris and thank you very much for posting on our forum!

After creating the Cron Job key from our https://mavrosxristoforos.com/cron-job-key-generatorcron job key generator interface, and downloading the trigger script, you need to do the following steps:

1. Add the Cron Job key in your NS Pro Options.

2. Edit the trigger script at line 4 to trigger your website. You simply have to replace the placeholder URL with your own website.
$sites_array[] = 'http://yourwebsitehere.com';
Please note that you need to write it exactly as you did in the cron job key generator interface, or else it won't work. For example, https://mavrosxristoforos.com (without a trailing slash) is not the same as https://mavrosxristoforos.com/ (with a trailing slash).

3. Create the cron job (as you already did). For other readers, you may need to ask your host to do that, or go to your hosting account control panel, (like cPanel, Plesk), go to Cron Jobs and create a new cron job according to the instructions. Again, if something is not clear, you should ask your host.

That's all.
Thanks again!

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

1 year 3 months ago #3 by Chris Paschen
Replied by Chris Paschen on topic How to configure cron job for self-directed automation
Thanks. I'll give this a try and see how it works.

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros