Gabriele Giorelli wrote:
> hi
> 
> in rules I have:
> action=pipe '$0' /usr/bin/mailx -s '[SEC] An error occurred' [email protected]
> 
> how to include the hostname in the subject to read:
> 
> action=pipe '$0' /usr/bin/mailx -s '[SEC] An error occurred on jupiter' 
> [email protected]
> 
> thank you
> 

try the following:

action=pipe '$0' /usr/bin/mailx -s "[SEC] An error occurred on `uname 
-n`" [email protected]

hth,
risto

> 
>       
> 
> 
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> _______________________________________________
> Simple-evcorr-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
> 


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to