Ad Widget

Collapse

Trouble with a Trigger that depends on the output of a command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sidpal
    Junior Member
    • Oct 2006
    • 13

    #1

    Trouble with a Trigger that depends on the output of a command

    I am having trouble creating a trigger whose action will depend on the output of an item that executes a remote command.

    The following is the item that I have created.

    system.run[ls -l /bin /sbin /usr/sbin|md5sum|awk '{print $1}']

    I would like to take the output of this command and check to see if the md5sum has changed. My item looks like this

    {crs_linux_t:system.run[ls -l /bin /sbin /usr/sbin|md5sum|awk '{print $1}'].diff(0)}>0

    I am not sure what I am doing wrong and help would be greatly appreciated
  • sidpal
    Junior Member
    • Oct 2006
    • 13

    #2
    Fixed

    I was able to figure out how to do it... if anybody has a problem with an issue similar to this, check the following post

    Comment

    Working...