Cron on Linux minute and day of the week

Asked

Viewed 839 times

1

I would like a force with a Linux Cronjob.

Follows:

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

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

1 answer

1

What you need:

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

The Cron reads all files and checks whether the current moment is compatible with the range indicated in the txt. In that 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.