Cron in linux minute and day of the week

0

I would like a force with a Linux Cronjob.

Follows:

*/1 * * * * wget http://192.168.6.80/sistema.php

I would like this process to be run every minute from Monday to Friday, from 6 to 6 o'clock in the morning.

    
asked by anonymous 06.12.2016 / 07:35

1 answer

1

What you need:

* 18,0-6 * * 1-5 wget http://192.168.6.80/sistema.php

Cron reads all files and verifies that the current time is compatible with range indicated in txt . In this case:

*      //Cada minuto
18,0-6 //Das 18:00 às 23:59 e 00:00 às 06:00 
*      //Cada dia do mês
*      //Cada mês
1-5    //De segunda a sexta
    
06.12.2016 / 11:08