3.5.3. Stopping email (if the mission is secret)

The Linux way to do it is to edit the cron that sends the email, and comment out the entry:

before:

#### 04:30 HST ###
# m h  dom mon dow   command

# send buffered dmail as usual
30 14 * * * (cd $HOME; . scripts/bash_paths; daily.py --buffer --use_defaults; sleep 5; send_buffered_mail.py) > $HOME/tmp/cron.log 2>& 1

# try every hour to send the mail (if any is there)
# don't let this happen at the same time as the email trying to go out
0 * * * * (cd $HOME; . scripts/bash_paths;  send_buffered_mail.py) > $HOME/tmp/buffered_mail.log 2>& 1

email secured:

##### 04:30 HST ### ## m h dom mon dow command

## send buffered dmail as usual #30 14 * * * (cd $HOME; . scripts/bash_paths; daily.py –buffer –use_defaults; sleep 5; send_buffered_mail.py) > $HOME/tmp/cron.log 2>& 1

## try every hour to send the mail (if any is there) ## don’t let this happen at the same time as the email trying to go out #0 * * * * (cd $HOME; . scripts/bash_paths; send_buffered_mail.py) > $HOME/tmp/buffered_mail.log 2>& 1

The UHDAS way to do it is to comment out the SMTP server in the file that controls the email (/home/adcp/config/uhdas_cfg.py)

before:

SMTP_server = '8.8.8.8'
mail_from = 'adcp@zzz-foobar.org'
use_SSL = True

email secured:

#SMTP_server = '8.8.8.8'
mail_from = 'adcp@zzz-foobar.org'
use_SSL = True