![]() |
|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
![]() |
|
Thread Tools | Display Modes |
|
||||
![]()
I'd put all of those commands you've strung together into a script, and execute the script.
![]() OpenBSD's cron(8) man page says: Quote:
|
|
|||
![]()
One thing to remember is that the MAILTO variable will be used in all subsequent cron jobs
Code:
MAILTO="" 0 0 * * * command1 && command2 && command3 && command4 && command5 1 1 * * * command1 && command2 && command3 MAILTO=root 2 2 * * * command1 && command2 To prevent this I find it easier is to move all the no-email-wanted jobs to the end: Code:
MAILTO=root 2 2 * * * command1 && command2 MAILTO="" 0 0 * * * command1 && command2 && command3 && command4 && command5 1 1 * * * command1 && command2 && command3
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |