如何获得最新的maldet扫描的电子邮件报告?

Maldet / Rfxn Linux MalDetect文档为此提供了一个电子邮件报告,即使没有发现任何内容:

-e, --report SCANID email View scan report of most recent scan or of a specific SCANID and optionally e-mail the report to a supplied e-mail address eg: maldet --report eg: maldet --report list eg: maldet --report 050910-1534.21135 eg: maldet --report SCANID [email protected] 

所有非常简单,但我不知道我怎么能通过一个电子邮件地址作为第二个参数在这里,同时允许第一个参数(扫描ID)回落到默认,所以maldet电子邮件无论最新的报告是这个定制电子邮件地址 我希望能够使用这个(例如在cron中)定期检查Maldet是否正在扫描,并能够按预期发送电子邮件报告。

我已经尝试maldet --report "" [email protected]基于在bash传递一个空的variables的标准方式 ,但它忽略它,并输出看起来像一个空的报告到控制台。

我也试过像maldet --report 0 [email protected]maldet --report " " [email protected]但它响应{report} no report found, aborting

环境是Centos在相关的情况下。

作者maldet或者没有提供这种可能性,或者忽略logging它。 从外面猜测是不可能的。 最好的方法是UTSL :在程序源代码中查找如何处理-e选项,以及是否有办法启动“最近扫描”分支并同时激活电子邮件选项。