[Top][All Lists]

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

Re: Determing if pipe exists

From: Brendan Strejcek
Subject: Re: Determing if pipe exists
Date: Thu, 5 May 2005 17:30:21 -0500
User-agent: Mutt/1.5.6+20040907i

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:

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

reply via email to

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