Hello all
  Anyone have this issue, and is there a fix? Thanks - Jim

running v3, and notice it uses "/bin/ps -elf" to grap process table. However, 
each line cuts off at 124 characters on solaris and it fails to match the 
processes.
For example:

# /bin/ps -ef | grep cfengine_watch.sh
    root 1338 4636 0 15:29:40 pts/1 0:00 grep cfengine_watch.sh
    root 12866 1 0 15:21:38 pts/1 0:00 /bin/sh 
/var/cfengine/inputs/cfengine_watch.sh

with v3 this fails, because /bin/ps -elf truncates the line, I'm using the PID 
here to grep and show the issue as doing the grep on the process name itself 
fails:

# /bin/ps -elf | grep " 12866 "
 0 S root 1985 4636 0 50 20 ? 202 ? 15:31:30 pts/1 0:00 grep 12866
 0 S root 12866 1 0 40 20 ? 217 ? 15:21:38 pts/1 0:00 /bin/sh 
/var/cfengine/inputs/cfengi


This ultimately fails the process matching.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to