From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 20 Aug 2007 11:37:56 +0300 From: Michael Shigorin To: ALT Linux Community Message-ID: <20070820083756.GG28425@osdn.org.ua> Mail-Followup-To: ALT Linux Community References: <46C57871.7000007@stc.donpac.ru> <20070817110522.GH1903@osdn.org.ua> <46C9320E.8010006@stc.donpac.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <46C9320E.8010006@stc.donpac.ru> User-Agent: Mutt/1.4.2.1i Subject: Re: [Comm] shell logical expressions X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 08:37:57 -0000 Archived-At: List-Archive: List-Post: On Mon, Aug 20, 2007 at 10:17:50AM +0400, Eugene Prokopiev wrote: > >[ `drbdadm state all | awk -F'/' '{print $1}'` == "Primary" ] \ > >&& grep drbd0 /proc/mounts > /dev/null \ > >&& exit 0 > >mail ..... > Т.е. exit 0 выполнится всегда? Нет. Проверь с заменой команд на true и false в комбинациях. (я проверил дальше по треду, где были cmd1/cmd2) -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/