From owner-freebsd-questions Thu Dec 5 19: 0: 2 2002 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 6239237B401 for ; Thu, 5 Dec 2002 19:00:00 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E491143E9C for ; Thu, 5 Dec 2002 18:59:57 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b166.otenet.gr [212.205.244.174]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gB62xsn0025979; Fri, 6 Dec 2002 04:59:55 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gB62xru7002119; Fri, 6 Dec 2002 04:59:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gB62xqLx002118; Fri, 6 Dec 2002 04:59:52 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 6 Dec 2002 04:59:52 +0200 From: Giorgos Keramidas To: aSe Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Qmail/Mail problem.. Message-ID: <20021206025952.GB1908@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-12-05 20:54, aSe wrote: > Hello, > I'm useing the HowTo at > http://mricon.com/SM/guide/bsd/qvcs-guide.pdf > to setup Qmail and Ucspi-tcp. I'm just having a slight problem > trying to start ucspi-tcp. > [...] > Fail# /usr/local/bin/tcpserver -R -x/var/qmail/control/relays.cdb \ > -u5001 -g5000 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | \ > /var/qmail/bin/splogger & > Ambiguous output redirect. You are running a command that was designed for sh(1) or compatible shells in csh(1). The guide you are reading assumes that your shell is a Bourne shell, but in BSD the default shell of the root user is /bin/csh. Try saving the command unchanged in a file, and run it as an sh(1) script: fail# cat rc-smtpd.sh /usr/local/bin/tcpserver -R -x/var/qmail/control/relays.cdb \ -u5001 -g5000 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | \ /var/qmail/bin/splogger & Then run the script you have written with sh(1): fail# sh rc-smtpd.sh That should make it work as expected... > (note: my email client is most likely wrapping that command to > another line but, it was entered as one) It didn't wrap anything. Which is arguably worse, some times, but that's another topic :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message