Jump to content

Recommended Posts

Posted

Username: sds, Server: Johnny, Main domain: sds.heliohost.org

 

Dear Support,

 

I want to add a cron job which I need to run only once a day. The php script

will simple read a text file and change the date in it and save that file.

 

Can I do that using php and add as a cron job?

 

I have tried and given the following path

 

/usr/local/bin/ea-php56 /home/sds/public_html/filename.php

 

But its not working for me.

 

Kindly guide me what am I doing wrong.

 

Thanks

 

-----Original Message-----

Posted

It probably doesn't work because I don't see a file named

 

/home/sds/public_html/filename.php

 

is that just an example?

Posted

Hi,

 

Thanks for you reply.. It worked.

 

I have added a crown job which runs only once a day.

 

The cron job is added added successfully.

 

But if I again go to cron job page, the added job disappears.

 

Please reply what am I missing here.

 

Thanks.

 

On 10 April 2019 11:22:00 AM Heliohost Support wrote:

 

> It probably doesn't work because I don't see a file

> named/home/sds/public_html/filename.phpis that just an example?

>

> You may view the status of your ticket by visiting:

>

> https://www.helionet.org/index/index.php?showtopic=35527

>

> Thank you,

> Heliohost support

> https://www.heliohost.org/

> https://www.helionet.org/

Posted

You're limited to 2 internal cron jobs per day. You have run 10 cron jobs already today. You're actually lucky you're not suspended for overusing cron. You'll need to wait until tomorrow to create a new cron job. If you need more than 2 cron executions per day you'll need to use external crons instead of internal cron jobs. External cron jobs work by targeting a script remotely like sds.heliohost.org/filename.php instead of internally like /home/sds/public_html/filename.php. External cron jobs can run as often as once every 5 minutes. Just let us know the url to the script and the frequency you want it to run at.

Guest
This topic is now closed to further replies.
×
×
  • Create New...