Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道在哪里保存脚本或如何在此字段中链接它。我在另一个网站上找到了这个脚本,我觉得它可以很好地完成我需要它做的事情,只需在卡车发生故障时通过电子邮件提醒我。
#!/bin/bash echo "You're screwed, the trunk you bought is down"|mail -s "You have a problem" email@domain.com
您需要将AGI脚本放入目录
/var/lib/asterisk/agi-bin
并确保它可以使用 $chmod +x 执行
然后将脚本的全名放入框中,并使用复选框启用它。