help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

activating a class from shellcommands


From: Wheeler, John
Subject: activating a class from shellcommands
Date: Tue, 5 Nov 2002 10:21:09 -0600

I'd like to activate a class from shellcommands. I have the following:
shellcommands:
        cessna::
                '/bin/echo "get in checksoftware"'
                "/var/cfengine/scripts/checksw2 $(allclasses)"
                        define=copyfiles

Oddly, this produces the following output:

cfengine:cessna: Executing script /bin/echo "get in checksoftware"...(timeout=0,uid=-1,gid=-1)
(Setting umask to 77)
cfengine:cessna: get in checksoftware
cfengine:cessna: Finished script /bin/echo "get in checksoftware"
cfengine:cessna: Executing script /var/cfengine/scripts/checksw2 copyfiles...(timeout=0,uid=-1,gid=-1)
(Setting umask to 77)
cfengine:cessna: in init
cfengine:cessna: in cleanup
cfengine:cessna: Line:any add SMCzlib 1.1.4 zlib-1.1.4-sol8-sparc-local
cfengine:cessna: Line:any add EBopenssl 0.9.6g openssl.pkg
cfengine:cessna: Line:any add EBopenssh 3.4p1 openssh.pkg
cfengine:cessna: Finished script /var/cfengine/scripts/checksw2 copyfiles
Job start time set to Tue Nov  5 10:14:28 2002

It appears that my script "checksw2" which I'd like to pass all classes to using $(allclasses) is actually getting the class in the define statement. My guess is that if the script successeds it activates the class. I couldn't find where this behavior is defined.

Can somone help me solve this? Is what I'm trying to do, set a class based on the return value of a script in shellcomands, possible?

thanks

John Wheeler


reply via email to

[Prev in Thread] Current Thread [Next in Thread]