-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default slurm excepts `mail` to be installed. Since 5181add, mail has been replaced by postfix and the binary `sendmail`. mail and sendmail do not share the same flags, so this commit introduces a wrapper named `slurm_mail` that takes arguments from Slurm and convert the ones needed in something sendmail can understand. Fix #144
- Loading branch information
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
email=${@: -1} | ||
subject=${@: 2:$#-2} | ||
cat << EOF | /usr/sbin/sendmail $email | ||
To: ${email} | ||
Subject: ${subject} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters