Open LabiciIvan opened 1 month ago
Description:
This is a quick demonstration on how to config the linux cron job which will be able to execute given scripts at a certain given time interval.
Open the crons job crontab -e
crontab -e
Add the crons configuration by passing the executable and path to the file: * * * * * /usr/bin/php /var/www/html/nutrition/App/logout.php
* * * * * /usr/bin/php /var/www/html/nutrition/App/logout.php
Run crons: sudo service crons start
sudo service crons start
View crons status: sudo service crons status or stop crons sudo service crons stop
sudo service crons status
sudo service crons stop
List everything from crons cronstab -l
cronstab -l
Description:
This is a quick demonstration on how to config the linux cron job which will be able to execute given scripts at a certain given time interval.
Open the crons job
crontab -e
Add the crons configuration by passing the executable and path to the file:
* * * * * /usr/bin/php /var/www/html/nutrition/App/logout.php
Run crons:
sudo service crons start
View crons status:
sudo service crons status
or stop cronssudo service crons stop
List everything from crons
cronstab -l