要配置Slurm通过电子邮件发送文件,您需要按照以下步骤操作:
MailProg=/usr/bin/mailx
sbatch --mail-type=BEGIN,END,FAIL
sbatch --mail-type=BEGIN,END,FAIL --mail-user=your-email@example.com
echo "Subject: Slurm Job Attachment" | mailx -s "Slurm Job Attachment" your-email@example.com -a attachment.txt
或者使用mutt发送带有名为"attachment.txt"的附件的邮件:
echo "Subject: Slurm Job Attachment" | mutt -s "Slurm Job Attachment" -a attachment.txt your-email@example.com
领取专属 10元无门槛券
手把手带您无忧上云