Hello James,

You can run your command before launch rsyslog, store it's output in an
environment variable, then access the variable's value using the getenv()
function.

Philippe Muller


On Wed, Jul 3, 2013 at 4:17 PM, Boylan, James <[email protected]>wrote:

> Had a quick question for everyone as I haven't been able to find anything
> definitive.
>
> Is it possible to run a command in RainerScript and store the results of
> that command into a variable to be used later in an if statement?
>
> Thanks!
>
> -- James
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to