Re: [Apcupsd-users] apcupsd on Ubuntu 8.04 not sending emails
Brought to you by:
adk0212
From: Trevor R. <tr...@se...> - 2009-04-25 02:11:20
|
>>>> doesn't notify me via email. Thing is I use ssmtp, I configured it >>>> good, modified the onbattery and offbattery scripts, they work when i >>>> call them via "./onbattery" or "sh onbattery" but not on power loss. >>>> they even work when i try "./apccontrol onbattery" or "./apccontrol >>>> offbattery" . I receive the email. but they won't work when the power >>>> goes out or in again. What can I do? [CHOMP excessive quoting] >>>> ssmtp bo...@my... < a The line above is your problem (obviously) and it _is_ a path issue. Think about it. Where is "a" located? Where is the executable running from? You can either hardcode ALL the paths or remove your extra level of indirection and instead do: echo "My email message text" | /path/ssmtp bo...@my... (I'm assuming that ssmtp is a simple substitution for mail, but I know nothing about ssmtp, so caveat utilitor). -- Trevor Roydhouse BJuris, LLB, LLM (UNSW) System Developer Australasian Legal Information Institute Web : www.austlii.edu.au |