From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/749 Path: news.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.comp.sysutils.supervision.general,gmane.linux.kernel Subject: Re: a problem with linux 2.6.11 and sa Date: Wed, 16 Mar 2005 17:37:59 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: <20050303214023.GD1251@ixeon.local> <6.2.1.2.0.20050303165334.038f32a0@192.168.50.2> <20050303224616.GA1428@ixeon.local> <871xaqb6o0.fsf@amaterasu.srvr.nix> <20050308165814.GA1936@ixeon.local> <871xap9dfg.fsf@amaterasu.srvr.nix> <20050309152958.GB4042@ixeon.local> <20050316031814.GB1315@ixeon.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111012654 1118 80.91.229.2 (16 Mar 2005 22:37:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2005 22:37:34 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-985-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Mar 16 23:37:34 2005 Original-Received: from antah.skarnet.org ([212.85.147.14] ident=qmailr) by ciao.gmane.org with smtp (Exim 4.43) id 1DBh83-0006Ew-CF for gcsg-supervision@gmane.org; Wed, 16 Mar 2005 23:36:39 +0100 Original-Received: (qmail 25840 invoked by uid 76); 16 Mar 2005 22:38:24 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 25835 invoked from network); 16 Mar 2005 22:38:24 -0000 Original-To: linux-kernel@vger.kernel.org In-Reply-To: <20050316031814.GB1315@ixeon.local> (George Georgalis's message of "Tue, 15 Mar 2005 22:18:14 -0500") Mail-Copies-To: nobody Mail-Followup-To: linux-kernel@vger.kernel.org, supervision@list.skarnet.org Original-Lines: 47 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) X-MailScanner-To: gcsg-supervision@gmane.org Xref: news.gmane.org gmane.comp.sysutils.supervision.general:749 gmane.linux.kernel:288000 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:749 "George Georgalis" wrote: > On Wed, Mar 09, 2005 at 06:28:35PM -0500, Paul Jarc wrote: >> To simplify, what about these two: >> mplayer foo.mpg >> mplayer foo.mpg < mediafiles.txt > > The particular host does not have X support so mpg is out. Well, use any one of the files listed in mediafiles.txt. I expect the first one would behave the same as your for loop, and the second would behave the same as your while loop. > I'm not sure that that test would work as mplayer requires filenames > as command arguments not stdin (exclusivly, I think); Note that I said to redirect input from mediafiles.txt, not from any of the filenames listed in it, but one of the files listed in it should also be passed ion the command line in both cases. Your test also had mplayer's stdin connected to mediafiles.txt. It was just less explicit - mplayer inherits stdin from surrounding loop. So I'm suggesting simplifying the test so that stdin is the *only* difference between the two cases, and that will show whether it's relevant. OTOH, if you can't reproduce the problem with the simplified pair of tests, then some interaction with the shell loops must be involved. > this works fine > mplayer `cat zz.mtest ` > > Then I tried > mplayer /dev/stdin Then I tried > while read file; do mplayer "$file" ; done