ps-watcher/tests/basic.cnf

28 lines
605 B
Plaintext
Raw Normal View History

2006-11-03 21:35:23 +00:00
# $Id: basic.cnf.in,v 1.4 2005/04/04 23:50:58 rockyb Exp $
# We gotta have at least two processes running. Like the OS
# and the ps-watcher program
[.]
trigger = $count > 1
action = echo "ok 1"
occurs = first
# Look for my processes
[perl]
action = echo "ok 2" || echo "$ps_pat"
[.?]
trigger = elapsed2secs('$etime') >= 0
action = echo "ok 3"
occurs = first
# I'm assuming there is no process with just a single space.
[^ $]
action = echo "ok 4"
occurs = none
# Test to see if first-trigger works.
[.*]
trigger = $pid == $$
action = echo "ok 5"
occurs = first-trigger