On Fri, Mar 16, 2018 at 12:23 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Yavuz TANRIVERD\xC4=B0 <sternix@gmail.com> writes: > I install PostgreSQL 10.3 from official sources to FreeBSD 11.1 than add > start script to rc.d system
> 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
Yes postgres user account's shell is /bin/csh
after changing shell to /bin/sh, script works as expected