help-cfengine
[Top][All Lists]
Advanced

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

Re: Need assistance in determining if an rpm is installed


From: Rune Mossige
Subject: Re: Need assistance in determining if an rpm is installed
Date: Tue, 15 Jan 2002 12:14:23 +0100
User-agent: Mutt/1.2.5i

On (15/01/02 10:58), Adrian Phillips wrote:
>     Rune> different way?
> 
> /usr/bin/test -x /bin/rpm && rpm -q ....
> 
> should work nicely and will handle other linux variants than rpm as
> well,

HandleItem("/usr/bin/test /bin/rpm && /bin/rpm -q openmotif-2.1.30-8")
Handling group item ("/usr/bin/test /bin/rpm && /bin/rpm -q
openmotif-2.1.30-8) 
in group ((†0@(†0@), type=2
cfpopen(/usr/bin/test /bin/rpm && /bin/rpm -q openmotif-2.1.30-8)
WGTS10:/usr/bin/test /bin/rpm &&
/bin/cf:WGTS10:/var/cfengine/inputs/cfagent.con
f:138: Warning: invalid statement 
cf:WGTS10:/var/cfengine/inputs/cfagent.conf:138: parse error 
cf:WGTS10:/var/cfengine/inputs/cfagent.conf:138: Warning: invalid
statement 
cf:WGTS10:/var/cfengine/inputs/cfagent.conf:138: parse error 
rpm -q openmotif-2.1.30-8: /usr/bin/test: too many arguments

Looks like there is something wrong with my syntax....I'll continue to
experiment.

> 
> Sincerely,
> 
> Adrian Phillips
> 
> -- 
> Your mouse has moved.
> Windows NT must be restarted for the change to take effect.
> Reboot now?  [OK]
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
> 

-- 
-------------------------------------------------------------------
           (-: Hiroshima 45, Chernobyl 86, Windows 95 :-)
Our ultimate goal is to make overloaded systems appear to be idle.
High performance, High reliability, Low cost -------- Pick any two.
-------------------------------------------------------------------
Rune  Mossige,  Systems  Support  Engineer,  WesternGeco, Stavanger
Tel: (+47)51946869                             Mobile:(+47)90871024



reply via email to

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