我想通过Automic Workload Automation 12.0的bash作业使用mailx发送电子邮件。该消息需要有特殊字符,在这种情况下,百分号“°”。 对于此示例,消息应具有主体This is the ° sign.。 我使用此代码发送消息。 printf '\xB0'打印°符号。 (
printf 'This is the '
printf '\xB0'
在Linux bash脚本中,我尝试使用mailx为每个读取的文件行发送1封电子邮件。读取的行包含构建电子邮件的参数。我可以在此循环之外发送相同的电子邮件。感谢您的任何意见。 #!/bin/bash
in_email_file='./in_file.txt'
email_adr="[email protected]"
while IFS='|' read -r subject body e