由于某种原因,我不断地从 OpenSSL 收到消息(不是字面上的不断,而是每小时左右)发送到我的终端邮箱,内容如下:
留言1
Subject: Cron <bymanj@dhcp-10-32-180-238> /usr/local/Cellar/openssl-osx-ca/1.0.3/bin/openssl-osx-ca /usr/local/bin/brew
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=bymanj>
X-Cron-Env: <USER=bymanj>
X-Cron-Env: <HOME=/Users/bymanj>
Date: Wed, 4 Sep 2013 18:00:01 -0400 (EDT)
/bin/sh: /usr/local/Cellar/openssl-osx-ca/1.0.3/bin/openssl-osx-ca: No such file or directory
即使我删除了这些消息,我似乎也无法摆脱它们。我的 OpenSSl 安装有问题吗?
答案1
答案2
如果您在收件箱中看到类似以下的消息:
From [email protected] Sat Feb 11 09:00:01 2017
Return-Path: <[email protected]>
X-Original-To: lex
Delivered-To: [email protected]
Received: by computername.localdomain (Postfix, from userid 501)
id 0328B1389A2B; Sat, 11 Feb 2017 09:00:00 -0500 (EST)
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron <lex@computername> /usr/local/Cellar/openssl-osx-ca/1.0.5/bin/openssl-osx-ca /usr/local/bin/brew
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=lex>
X-Cron-Env: <USER=lex>
X-Cron-Env: <HOME=/Users/lex>
Message-Id: <[email protected]>
Date: Sat, 11 Feb 2017 09:00:00 -0500 (EST)
/bin/sh: /usr/local/Cellar/openssl-osx-ca/1.0.5/bin/openssl-osx-ca: No such file or directory
注意主题行。
检查你的 crontab
$ crontab -l
@hourly /usr/local/Cellar/openssl-osx-ca/1.0.5/bin/openssl-osx-ca /usr/local/bin/brew
删除 openssl-osx-ca 行:
(crontab -l | grep -v openssl-osx-ca) | crontab -
检查您是否通过自制程序安装了旧版本。
运行此命令以查看您拥有的版本:
find /usr/local/Cellar/openssl-osx-ca -maxdepth 1 -type d
要删除除最新版本之外的所有 openssl-osx-ca,请运行以下命令:
brew cleanup openssl-osx-ca
最后,您可能想删除您的邮件。如果是这样,请运行以下命令:
cp /dev/null /var/mail/$USER