CodeIgniter Forums
cli cron job how to set up - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: cli cron job how to set up (/showthread.php?tid=63450)



cli cron job how to set up - alfred.laggner - 10-31-2015

I am trying to set up a cron job to send daily reminder emails. My host provider is startlogic.com.
I studied the article below and several others to set up a cron job. What I am unclear is where to get the command line interface on my provider control panel. I also looked up easy cron and others. They don't give any specifics about the cron syntax.

I studied the article below but he just talks about 'the server' generally and nothing about host providers.

What am I missing?


http://glennstovall.com/blog/2013/01/07/writing-cron-jobs-and-command-line-scripts-in-codeigniter/


RE: cli cron job how to set up - includebeer - 10-31-2015

You won't find a command line interface on your provider control panel. You need to use a program to connect to your provider via SSH. On Windows you can use Putty. On Linux and Mac you just need to open a terminal window.


RE: cli cron job how to set up - alfred.laggner - 10-31-2015

If I understand it right this will setup a permanent cron on the hosting server?


RE: cli cron job how to set up - alfred.laggner - 10-31-2015

thank you includebeer. Putty seems pretty complex. I only need to set up one job. Have you experoence with easycron or other cron providers? This is way more complex than it should be.


RE: cli cron job how to set up - includebeer - 11-01-2015

Putty is no more complex than a ftp client. It allows you to connect to a server with SSH. Once you're connected, you can enter the command you want: test your script, set up cron jobs etc.

If all you want to do is set up a cron job, then maybe your provider have an option to do that in the control panel.
I made a quick search and found this: http://www.startlogic.com/knowledgebase/beta/article.bml?ArticleID=1443


RE: cli cron job how to set up - rtorralba - 11-01-2015

(10-31-2015, 08:19 AM)alfred.laggner Wrote: I am trying to set up a cron job to send daily reminder emails. My host provider is startlogic.com.
I studied the article below and several others to set up a cron job. What I am unclear is where to get the command line interface on my provider control panel. I also looked up easy cron and others. They don't give any specifics about the cron syntax.

I studied the article below but he just talks about 'the server' generally and nothing about host providers.

What am I missing?


http://glennstovall.com/blog/2013/01/07/writing-cron-jobs-and-command-line-scripts-in-codeigniter/

If you have linux operating system putty is not necessary, just write the following at your terminal.

ssh user@server_domain (or ip)