In message <[EMAIL PROTECTED]>,
"Daniel Jursik" writes:
>Hello Hari,
>See attached output run from cygwin shell, first from sec, the seconf the
>shellcmd itself.
>
>Thanks and Regards,

Please try the following. It works using cygwin under windows XP sp3.

Make a directory /tmp/test. cd to that directory,

Create a file sec.sr in that directory with the following contents:

#=== cut here
type = single
desc= text
ptype=substr
pattern=run
action=shellcmd touch foo
#=== cut here

Then run that file using:

   sec -input=- -conf=sec.sr 

You should see:

  SEC (Simple Event Correlator) 2.4.1
  Reading configuration from sec.sr
  Rule in sec.sr at line 1: Warning - could not find 'touch'
  1 rules loaded from sec.sr

Type the word "run" and you should see:

  Executing shell command 'touch foo'
  Child 4492 created for command 'touch foo'

type control-z to suspend the job and do an ls and you should have the
file foo present in the directory.
  [1]+  Stopped                 /tools/sec/bin/sec -input=- -conf=sec.sr
  /tmp/test> ls
  foo  sec.sr

What does 'perl -v' produce? Mine shows:

  This is perl, v5.10.0 built for cygwin-thread-multi-64int
  (with 6 registered patches, see perl -V for more detail)
  [...]

--
                                -- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to