From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 05:43:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03B0D37B401 for ; Mon, 16 Jun 2003 05:43:04 -0700 (PDT) Received: from hotmail.com (bay8-dav30.bay8.hotmail.com [64.4.26.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C84843F3F for ; Mon, 16 Jun 2003 05:43:03 -0700 (PDT) (envelope-from popov_post@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 16 Jun 2003 05:43:03 -0700 Received: from 62.16.108.130 by bay8-dav30.bay8.hotmail.com with DAV; Mon, 16 Jun 2003 12:43:02 +0000 X-Originating-IP: [62.16.108.130] X-Originating-Email: [popov_post@hotmail.com] From: "Paul" To: Date: Mon, 16 Jun 2003 16:45:52 +0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Message-ID: X-OriginalArrivalTime: 16 Jun 2003 12:43:03.0587 (UTC) FILETIME=[D3E2B730:01C33404] Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: MPD automation trouble X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2003 12:43:05 -0000 Hello, All. I use MPD under FreeBSD 4.7. Now i needed to automate management of the MPD and i find out strange = behavior of MPD (3.13): One my program (myserver) transmits some set of commands for MPD via = stdout, which is redirected to MPD's stdin by shell: command line: "# myserver | mpd" One or two commands from this set are executed by mpd immediately, but = other commands from set hang somewhere until myserver sends to MPD another command's set, = after that previouse commands are successfully executed by MPD and new commands hang = somewhere again. When i use command like "# myserver | cat", full set of commands is = printed to console. I want to understand why this happens and where commands hang. Help me to solve the this problem, please. Paul