[RISOLTO] dubbi crontab

  • Creatore Discussione Creatore Discussione sacarde
  • Data di inizio Data di inizio

sacarde

Utente Attivo
25 Set 2007
30
0
0
ciao,
ho un dubbio sul funzionamento di crontab

nel caso fossero specificati entrambi i valori:
giorno del mese e il giorno della settimana

l'esecuzione avviene quando si verificano entrambi?
o basta uno dei due




grazie
 
Se specifichi sia il giorno del mese che il giorno della settimana il comando viene eseguito quando una qualsiasi delle due condizioni è soddisfatta.

Dal manuale:
Note: The day of a command's execution can be specified by two fields — day of month, and day of week. If both fields are restricted (i.e., aren't *), the command will be run when either field matches the current time. For example, ``30 4 1,15 * 5'' would cause a command to be run at 4:30 am on the 1st and 15th of each month, plus every Friday. One can, however, achieve the desired result by adding a test to the command (see the last example in EXAMPLE CRON FILE below).
 

Discussioni simili