Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewaLo-000118-Rn for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Mar 2018 21:23:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewaLn-00025p-6p for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Mar 2018 21:23:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewaLm-00025f-TQ for pgsql-bugs@lists.postgresql.org; Thu, 15 Mar 2018 21:23:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewaLk-0007x8-FU for pgsql-bugs@postgresql.org; Thu, 15 Mar 2018 21:23:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2FLNkNe028420; Thu, 15 Mar 2018 17:23:46 -0400 From: Tom Lane To: =?UTF-8?Q?Yavuz_TANRIVERD=C4=B0?= cc: pgsql-bugs@postgresql.org Subject: Re: contrib/start-scripts/freebsd script fails with Ambiguous output redirect. In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?Yavuz_TANRIVERD=C4=B0?= message dated "Thu, 15 Mar 2018 22:59:42 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28418.1521149026.1@sss.pgh.pa.us> Date: Thu, 15 Mar 2018 17:23:46 -0400 Message-ID: <28419.1521149026@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?UTF-8?Q?Yavuz_TANRIVERD=C4=B0?= writes: > I install PostgreSQL 10.3 from official sources to FreeBSD 11.1 than add > start script to rc.d system > # cp postgresql-10.3/contrib/start-scripts/freebsd > /usr/local/etc/rc.d/postgresql.sh > # chmod +x /usr/local/etc/rc.d/postgresql.sh > than want to start the server with "/usr/local/etc/rc.d/postgresql.sh > start" command but i get "Ambiguous output redirect." error Perhaps you're using a non-bourne-compatible shell for the postgres user account? If so, you'd likely need to adapt the syntax for the passed-down command. regards, tom lane