From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1125 Path: news.gmane.org!not-for-mail From: B S Srinidhi Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: problems with QMAILQUEUE and reading stdin Date: Mon, 29 May 2006 10:53:01 +0530 Organization: DeepRoot Linux Pvt. Ltd. Message-ID: <1148880181.19941.3.camel@avirat> References: <20060529015814.GA15937@run.galis.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1148880168 30091 80.91.229.2 (29 May 2006 05:22:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 May 2006 05:22:48 +0000 (UTC) Original-X-From: supervision-return-1361-gcsg-supervision=m.gmane.org@list.skarnet.org Mon May 29 07:22:44 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 1FkaD9-0001uZ-D4 for gcsg-supervision@gmane.org; Mon, 29 May 2006 07:22:39 +0200 Original-Received: (qmail 11996 invoked by uid 76); 29 May 2006 05:23:00 -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 11990 invoked from network); 29 May 2006 05:23:00 -0000 X-Spam-Status: No, hits=-1.2 required=4.0 X-Spam-Report: SA TESTS 0.2 SARE_SUB_OBFU_Q1 FVGT - subject contains odd letter combination -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-deepOfix-Mail-Filter-Mail-From: srinidhi@deeproot.co.in via anubhav X-deepOfix-Mail-Filter: 1.25st (Clear:RC:0(192.168.1.15):SA:0(-1.2/4.0):. Processed in 5.628784 secs Process 16669) Original-To: supervision@list.skarnet.org In-Reply-To: <20060529015814.GA15937@run.galis.org> X-Mailer: Evolution 2.6.1 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1125 Archived-At: Hi, On Sun, 2006-05-28 at 21:58 -0400, George Georgalis wrote: > I'm dealing with a frustrating problem where my QMAILQUEUE program > is not working because it cannot read stdin. > > 2006-05-29_00:58:31.79998 tcpsvd: info: status 3/20 > 2006-05-29_00:58:31.80038 tcpsvd: info: pid 10614 from 204.152.190.11 > 2006-05-29_00:58:31.80098 tcpsvd: info: start 10614 sta.galis.org:69.31.23.138 ::204.152.190.11:51459 ./peers.cdb/0 > 2006-05-29_00:58:32.04704 /var/qmail/bin/prequeue: cannot open /dev/stdin: error 9 > 2006-05-29_00:58:32.15075 tcpsvd: info: end 10614 exit 0 > 'error 9' means "Bad file number". So, its nothing to with your permissions or anything else. > 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"` ?? Hope this helps. Srinidhi. -- ASCII ribbon campaign ( ) B S Srinidhi - against HTML email X http://srinidhi.deeproot.co.in & vCards / \ DeepRoot Linux