DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 12th May 2022
dchmelik's Avatar
dchmelik dchmelik is offline
Real Name: David Chmelik
Port Guard
 
Join Date: Oct 2017
Location: USA
Posts: 38
Question multiple-command cron jobs without emails?

I do many cron jobs like below.
Code:
0 0 * * * command1 && command2 && command3 && command4 && command5 1> /dev/null 2>&1
Obviously I don't want their emails but apparently first four email, I guess not fifth. Is there a way to stop emails other than '1> /dev/null 2>&1' at end of every command?
        I'd like to know for *BSD Unix (Open, Free, and fine to describe Net, DragonFly, IllumOS) and hopefully strictly Unix-like GNU/Linux (Slackware, though I don't use Devuan or Gentoo much., and don't consider latter two strictly Unix-like but almost, and no others well-known are anything close.)
__________________
David
homesite mirror (most uptime) / homesite (updated first)

Last edited by dchmelik; 12th May 2022 at 11:24 AM.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduling jobs with at(1) instead of cron(8) J65nko Guides 0 13th May 2021 06:01 AM
Can't send emails with msmtp - domain name conflict acampbell OpenBSD General 5 14th January 2015 06:51 PM
Why Bad Jobs (or No Jobs) Happen To Good Workers ocicat News 3 22nd June 2012 04:56 PM
Parsing emails with 'awk' and 'perl' J65nko Guides 1 24th February 2011 03:34 AM


All times are GMT. The time now is 11:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick