From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1128 Path: news.gmane.org!not-for-mail From: "George Georgalis" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: problems with QMAILQUEUE and reading stdin Date: Mon, 29 May 2006 09:37:44 -0400 Message-ID: <20060529133744.GB15937@run.galis.org> References: <20060529015814.GA15937@run.galis.org> <1148880181.19941.3.camel@avirat> <1148905142.19941.57.camel@avirat> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148909882 28386 80.91.229.2 (29 May 2006 13:38:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 May 2006 13:38:02 +0000 (UTC) Original-X-From: supervision-return-1364-gcsg-supervision=m.gmane.org@list.skarnet.org Mon May 29 15:37:57 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FkhwI-0007eN-Ft for gcsg-supervision@gmane.org; Mon, 29 May 2006 15:37:47 +0200 Original-Received: (qmail 18064 invoked by uid 76); 29 May 2006 13:38:07 -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 18059 invoked from network); 29 May 2006 13:38:07 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <1148905142.19941.57.camel@avirat> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1128 Archived-At: On Mon, May 29, 2006 at 05:49:02PM +0530, B S Srinidhi wrote: >On Mon, 2006-05-29 at 08:11 -0400, Charlie Brady wrote: >> Why run cat unnecessarily (and depend on /dev/stdin which only sometimes >> exists)? >> >> Try: >> >> tmp=$pq/$(/usr/pkg/bin/safecat "$pq/tmp" "$pq") Thank you! I had tried all sorts of ways to read stdin; but I was always referencing the dev file directly (or cat -). The implicit stdin worked on first try. :) >hmm... Yeah you are right. :) But is the above thing portable? I mean, >would this work with shells other than BASH? well I'm using it with NetBSD /bin/sh which I understand is the closest thing to the original /bin/sh available. (the ash shell is the closest in Linux). I'd prefer to specify stdin as an argument, I'd like to retain that style for helping people (including myself) interpret the code. I'm going to take it up on some netbsd list, they are pretty good at fixing things if they aren't working right. Thanks again! // George -- George Georgalis, systems architect, administrator < http://galis.org/ cell:646-331-2027 mailto:george@galis.org