Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!