help-cfengine
[Top][All Lists]
Advanced

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

Re: Determing if pipe exists


From: Brian E. Seppanen
Subject: Re: Determing if pipe exists
Date: Fri, 6 May 2005 09:45:51 -0400 (EDT)

On Thu, 5 May 2005, Brendan Strejcek wrote:

Russell Van Tassell wrote:

What about something like...

     classes:
         is_pipe = (
             ReturnsZero(/bin/sh -c '
                 /bin/test -p /path/to/pipe
             ')
         )

Yeah, that is better. And I was only using /bin/sh -c '' for the shell
output redirection. So one could also just do:

   classes:
       is_pipe = ( ReturnsZero(/bin/test -p /path/to/pipe) )

Thanks guys.   I'll give that a shot.



Brian Seppanen
address@hidden
608.826.1464




reply via email to

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