View Single Post
  #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.
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.)
homesite mirror (most uptime) / homesite (updated first)

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