Custom crontab file: examples, description and reviews

The Cron software utility is a time task scheduler on Unix-like computer operating systems. Users who configure and maintain software environments use Cron to schedule jobs (commands or shell scripts) to run periodically at specific times, dates, or intervals. It usually automates the maintenance or administration of the system, although its universal nature makes it useful for things such as downloading files from the Internet and updating e-mail at regular intervals. The origin of the name cron from the Greek word "in time" is Ο‡ΟΟŒΞ½ΞΏΟ‚ (chronos).

crontab examples




Application

Cron . , Cron . , Drupal, Cron . .

, Cron, . , , e-mail.

freebsd crontab examples








. , . . Crontab , .

Cron Crontab (cron table) β€” , . Crontab , . Crontab-, .

. Crontab :

# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ minute (0 - 59)

# β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ hour (0 - 23)

# β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ day of month (1 - 31)

# β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ month (1 - 12)

# β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ day of week (0 - 6) (Sunday to Saturday;

# β”‚ β”‚ β”‚ β”‚ β”‚ 7 is also Sunday on some systems)

# β”‚ β”‚ β”‚ β”‚ β”‚

# β”‚ β”‚ β”‚ β”‚ β”‚

# * * * * * command to execute

Cron, .

, / , : Β« Β» ( 3) Β« Β» ( 5) , .









, Apache (00:01) : 10 * * * printf > /var/log/apache/error_log.

Crontab export_dump.sh 23:45 (23:45) .

, , .

sample crontab files




Freebsd Crontab:

Cron : , ( ).

Linux Cron. Cron , , , .

Cron 15- , .

Crontab :

  • @yearly ( @annually) β€” 1 ;

  • @monthly β€” 00:00 ;

  • @weekly β€” ;

  • @daily β€” ;

  • @hourly β€” ;

  • @reboot β€” .

@reboot , , init .

crontab content examples




Crontab

:

  • (',') : "1,3,4,7,8".

  • ('-') , : Β«1-6Β», Β«1,2,3,4,5,6Β».

  • Asterisk ('*') . Β« Β».

  • slash ('/'), . , Β«*/3Β» Β«0,3,6,9,12,15,18,21Β». "\*" Β« Β», Β«/3Β» , , , , . .

Crontab:

Cron Crontab , . , . , Cron Β«CRON_TZ = < Β», crontab .

custom crontab file




Cron

Cron :

  • , .

  • , ( cPanel).

  • , , .

, Cron, . , Cron.

Crontab?

. Cron Jobs cPanel .

Cron:

  • cPanel.

  • «» Β« Β».

  • Cron Email , . , Β« Β». .

  • Β« CronΒ» Β« Β», ; , . .

  • Command .

  • Β« Β».

Cron , .

Cron:

  • cPanel Β« Β».

  • Β« Β».

  • Cron, .

  • In the Actions section, for the corresponding Cron job, click Modify or Delete.




All Articles