LabiciIvan / php-api-nutritional-project

A PHP API nutritional project
0 stars 0 forks source link

Crons Job on Linux server #39

Open LabiciIvan opened 1 month ago

LabiciIvan commented 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

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 crons sudo service crons stop

List everything from crons cronstab -l