Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
multiple crontab jobs but only one of them should not send email

I know that crontab job emails output of the job to its user. In my crontab file I have multiple jobs like:

10 21 * * * test1.sh
13 21 * * * test2.sh
0 * * * * test3.sh

I don't want to receive email for test3.sh. Does below code works? I want to make sure that only for the last job I wont receive email.

10 21 * * * test1.sh
13 21 * * * test2.sh
MAILTO=""
0 * * * * test3.sh
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

See http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/

You could use something like

0 * * * * test3.sh >/dev/null 2>&1

There will be no output --> no mail sent.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda