Dyskusja w 'Hosting i domeny internetowe' rozpoczęta przez użytkownika Roopan, 30 Maj 2015.
How can i add crone jobs?
Can somebody help me here?
To use the cron at the root of accounts place the script with the name of principles:
cron- [hourly | daily | monthly | weekly]. [extension]
More information can be found in the documentation (https://pomoc.home.pl/baza-wiedzy/cykliczne-uruchamianie-cron/ - you can use google translator) or by typing in Google: cron
For what cron will run, it corresponds to its content.
file with name „cron-daily.php” will be running at 1:15 AM
file with name „cron-13.php” will be running at 01:00 PM
file with name "cron-01.php" will be running at 01:AM
How can i run the command "php5 / path / to / file / command params" in every 5 minutes.
What would be the content of the file cron-5min.php?
Thanks in advance
cron-5min.php - will be running every 5 minutes.
You must upload this file to the root directory server: "/" on FTP or "/public_html/" on SFTP
If i uploaded the file with content
exec ('/ public_html / php yii mailbox');
The command will work?
I want to execute a Linux command (my own corn command job) on the server.
If so what i need to include in exec () to execute php files?
Actually I need to run "php yii mail-box" command in every 5 minutes.
use the command system()
@Roopan You can run the linux command with:
If you want to execute PHP code:
You can also execute phpini() command from cron and save the result to a file to know what is the our server environment.
in the bottom left corner of the web page, you can change the forum interface language:
Yup, I got it working, Thanks for your help.
Nazwy użytkowników oddziel przecinkami.