diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-03 09:20:02 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-03 09:20:02 +0100 |
commit | e4ca8a3119ece504819605b340a3f5ba36b3eab6 (patch) | |
tree | 9fa4c2baacedb410460fdef268c00fc8e52a9e54 /tests/testsuites/rsf_getenv.conf | |
parent | 38e83becf605f128ebae26fd58c68c2ef38e946a (diff) | |
download | rsyslog-e4ca8a3119ece504819605b340a3f5ba36b3eab6.tar.gz rsyslog-e4ca8a3119ece504819605b340a3f5ba36b3eab6.tar.xz rsyslog-e4ca8a3119ece504819605b340a3f5ba36b3eab6.zip |
added function getenv() to RainerScript
Diffstat (limited to 'tests/testsuites/rsf_getenv.conf')
-rw-r--r-- | tests/testsuites/rsf_getenv.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/testsuites/rsf_getenv.conf b/tests/testsuites/rsf_getenv.conf new file mode 100644 index 00000000..2f2eb58c --- /dev/null +++ b/tests/testsuites/rsf_getenv.conf @@ -0,0 +1,17 @@ +# Test for RainerScript getenv() function (see .sh file for details) +# Note envvar MSGNUM must be set to "msgnum:" +# rgerhards, 2009-11-03 +$IncludeConfig diag-common.conf + +$ModLoad ../plugins/imtcp/.libs/imtcp +$MainMsgQueueTimeoutShutdown 10000 +$InputTCPServerRun 13514 + +# set spool locations and switch queue to disk-only mode +$WorkDirectory test-spool +$MainMsgQueueFilename mainq +$MainMsgQueueType disk + +$template outfmt,"%msg:F,58:2%\n" +$template dynfile,"rsyslog.out.log" # trick to use relative path names! +if $msg contains getenv('MSGNUM') then ?dynfile;outfmt |