Crontab

1. Crontab

Lucas Cesar Ferreira de Medeiros
Luckcfm

(usa Ubuntu)

Enviado em 10/12/2015 - 11:57h

Pessoal em uma crontab eu posso repetir várias vezes o mesmo dia com horas diferentes?

Exemplo:

ao invés de colocar 1-5, por exemplo eu colocar algo como(Essas horas são fictícias):
0 12 * * 0 /etc/init.d/servico start 
0 13 * * 0 /etc/init.d/servico stop
0 12 * * 1 /etc/init.d/servico start
0 13 * * 1 /etc/init.d/servico stop
0 12 * * 2 /etc/init.d/servico start
0 13 * * 2 /etc/init.d/servico stop
0 12 * * 3 /etc/init.d/servico start
0 13 * * 3 /etc/init.d/servico stop
0 12 * * 4 /etc/init.d/servico start
0 13 * * 4 /etc/init.d/servico stop
0 12 * * 5 /etc/init.d/servico start
0 13 * * 5 /etc/init.d/servico stop
0 12 * * 6 /etc/init.d/servico start
0 13 * * 6 /etc/init.d/servico stop

0 15 * * 0 /etc/init.d/servico start
0 18 * * 0 /etc/init.d/servico stop
0 15 * * 1 /etc/init.d/servico start
0 18 * * 1 /etc/init.d/servico stop
0 15 * * 2 /etc/init.d/servico start
0 18 * * 2 /etc/init.d/servico stop
0 15 * * 3 /etc/init.d/servico start
0 18 * * 3 /etc/init.d/servico stop
0 15 * * 4 /etc/init.d/servico start
0 18 * * 4 /etc/init.d/servico stop
0 15 * * 5 /etc/init.d/servico start
0 18 * * 5 /etc/init.d/servico stop
0 15 * * 6 /etc/init.d/servico start
0 18 * * 6 /etc/init.d/servico stop

0 1 * * 0 /etc/init.d/servico start
0 2 * * 0 /etc/init.d/servico stop
0 1 * * 1 /etc/init.d/servico start
0 2 * * 1 /etc/init.d/servico stop
0 1 * * 2 /etc/init.d/servico start
0 2 * * 2 /etc/init.d/servico stop
0 1 * * 3 /etc/init.d/servico start
0 2 * * 3 /etc/init.d/servico stop
0 1 * * 4 /etc/init.d/servico start
0 2 * * 4 /etc/init.d/servico stop
0 1 * * 5 /etc/init.d/servico start
0 2 * * 5 /etc/init.d/servico stop
0 1 * * 6 /etc/init.d/servico start
0 2 * * 6 /etc/init.d/servico stop



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts