From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1126 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: problems with QMAILQUEUE and reading stdin Date: Mon, 29 May 2006 08:11:08 -0400 (EDT) Message-ID: References: <20060529015814.GA15937@run.galis.org> <1148880181.19941.3.camel@avirat> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1148904686 9445 80.91.229.2 (29 May 2006 12:11:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 May 2006 12:11:26 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1362-gcsg-supervision=m.gmane.org@list.skarnet.org Mon May 29 14:11:22 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 1FkgaV-0000j9-GT for gcsg-supervision@gmane.org; Mon, 29 May 2006 14:11:11 +0200 Original-Received: (qmail 16926 invoked by uid 76); 29 May 2006 12:11:32 -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 16920 invoked from network); 29 May 2006 12:11:32 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: B S Srinidhi In-Reply-To: <1148880181.19941.3.camel@avirat> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1126 Archived-At: On Mon, 29 May 2006, B S Srinidhi wrote: >> This is the line from /var/qmail/bin/prequeue that's causing the >> error: >> >> tmp="$pq/`/usr/pkg/bin/safecat "$pq/tmp" "$pq" > > > hmm... I don't know what exactly should happen here, but wouldn't it be > possible to do this: > > `cat /dev/stdin | /usr/pkg/bin/safecat "$pq/tmp" "$pq"` Why run cat unnecessarily (and depend on /dev/stdin which only sometimes exists)? Try: tmp=$pq/$(/usr/pkg/bin/safecat "$pq/tmp" "$pq")