[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] getting alert to call scripts
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] getting alert to call scripts
- From: "Robin Wood" <dninja (at) gmail.com>
- Date: Thu, 16 Aug 2007 22:34:23 +0100
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mk5L67WvoF7/ImBH96jWP7paAa327WOMB6blYGbh4TmQhgFSD9Hffjiit+ojnVv3Jf9HLgZBlfvhr3DgBRNjyEuo2hQ1eeBM3it6YMdpzZKGpJB2ruStQxIWIXv8ywRvnyqNwAzGT39uYTQiqpwwxI7Teyb6zawq3KXXoOoGJ74=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kunC37/QaZjOD2aCs+yqBroQj/r/a+hJP/6/v99LsUKHJScqSNHpjI1WjsyCoqTUUXEhjD4U/5eab3X07+DB/22flsirdAN29NdwJ+PGRSGZlpa0TRY63Kb7ahGKmLpvF9vgdjh0rHlv0EyYVM8/prK6pRiy4ry28X8K68/ctb4=
- References: <2cf3b3170708161218m6626ac36p8855af9f3eb037b8 (at) mail.gmail.com> <1187293673.4619.8.camel (at) tmelcher2> <2cf3b3170708161344r68341eb8ybb74d149fb935528 (at) mail.gmail.com> <997a524e0708161428l541ab832l5989394b4b18ffc0 (at) mail.gmail.com>
Got it. Thanks
Robin
On 8/16/07, Ralph Mitchell <ralphmitchell (at) gmail.com> wrote:
> On 8/16/07, Robin Wood <dninja (at) gmail.com> wrote:
> > Bang on! I used /tmp so anyone could write to it but then had root
> > create the files and lock hobbit out!.
> >
> > But, now that it is working no params are being passed into the scripts
> >
> > #tail -f script sms text
> > ==> script <==
> > Array
> > (
> > [0] => /usr/local/bin/sendscript
> > )
> >
> > ==> sms <==
> > Array
> > (
> > [0] => /usr/local/bin/sendsms
> > )
> >
> > ==> text <==
> > Array
> > (
> > [0] => /usr/local/bin/sendemail
> > )
> >
> > When I call it with params it has them so the script works.
> >
> > # sendsms abc 123
> >
> > ==> sms <==
> > Array
> > (
> > [0] => /usr/local/bin/sendsms
> > [1] => abc
> > [2] => 123
> > )
> >
> > I assume that the that is the way it is supposed to work. Did your
> > version get params passed through?
>
> The params are passed in the environment. Take a look at "Configuring
> Alerts" in the Help drop down on your Hobbit server. Down near the
> bottom of the page is the full list. In particular, BBALPHAMSG (the
> full text of the alert) and RCPT (the recipient).
>
> Ralph Mitchell
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>