sendmail在Slurm Workload Manager中不起作用(通过命令行工作)

问题描述 投票:2回答:1

我在从Slurm Workload Manager发送电子邮件时遇到问题。我是特权有限的普通用户。 SSH进入远程服务器时,我可以从命令行发送电子邮件

sendmail [email protected] < mail.txt

并且我收到了发送到我的Gmail帐户的电子邮件。到现在为止还挺好。但是,当我将命令放在bash脚本中时

#!/bin/bash
sendmail [email protected] < mail.txt

sbatch该脚本我没有收到电子邮件,但收到以下警告。

sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postdrop: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postdrop: warning: unable to look up public/pickup: No such file or directory

[我最终想在sbatch运行的脚本完成后向自己发送自定义电子邮件,该脚本将包括输出和错误文件中的日志。我正在寻找可以帮助我做到这一点的任何解决方案。也许有某种方法可以在sbatch之后运行脚本,其运行方式与我在终端中键入内容时的运行级别相同。也许正在运行我的脚本的节点上有一些不同的邮件配置,并且有某种方法可以更改它们,或者我调用sendmail时要考虑到不同的设置。

感谢您的帮助:)

email server sendmail slurm
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.