Bryan Mayland
TVWBB Hall of Fame
Oh dangit you figured it out. I did too! I used this and it worked great:
The echo line is broken because "-ash: syntax error: unexpected "("". This is fixed by either putting the whole thing in quotes or escaping the parens:
I was worried gmail wouldn't forward the SMS but it worked. Took about a minute for it to get to the phone though.
Code:
account default
host smtp.gmail.com
port 465
auth on
from c@gmail.com
user c@gmail.com
password password
tls on
tls_certcheck off
tls_starttls off
The echo line is broken because "-ash: syntax error: unexpected "("". This is fixed by either putting the whole thing in quotes or escaping the parens:
Code:
echo "$PN Alert -- $PCUR ($al_type)"
or
echo $PN Alert -- $PCUR \($al_type\)
I was worried gmail wouldn't forward the SMS but it worked. Took about a minute for it to get to the phone though.