Re: cf-agent doesnt't exit on solaris 8, test on simple commands promise

2010-04-25 Thread M LZ
Gdb bt points to libthread as a possible point of deadlock: #0 0xfed29780 in __sigprocmask () from /usr/lib/libthread.so.1 #1 0xfed1e630 in __bounceself () from /usr/lib/libthread.so.1 #2 0xfed1b160 in _mutex_adaptive_lock () from /usr/lib/libthread.so.1 #3 0xfed1ae88 in _cmutex_lock () fro

Fwd: simple return array from other "code"

2010-04-25 Thread Jakub Viták
Hi. I am novice to cfengine and I am trying to understand how it works. I understand some classes defined "flow", but I would like to know howto generate slist from command - shell script or even some agent class. Something like this: vars: "my_list" slist = generate_somwhere_else(); repor

Re: simple return array from other "code"

2010-04-25 Thread Nakarin Phooripoom
You could get a string from a shell command by execresult() then split the string up to an slist by splitstring() ## vars: "result" string => execresult("/bin/ls /","noshell"); "split" slist => splitstring("$(result)"," ","100"); reports: Yr2010:: "Found: $(split)"; ##