LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Daryl Tester <Daryl.Tester@iocane.com.au>
To : Ian Hogben <hogbender@westnet.com.au>
Date: Wed, 01 Jan 2003 14:30:30 +1030
Re:
Ian Hogben wrote:
> Hello, list:
I remember you. :-)
> su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -o "-I -p 5432"
> -p /usr/bin/postmaster start > /dev/null 2>&1" < /dev/null
>
> Problem is, I have tried the ' character and also \" but it still
> doesn't work. I know it's a simple matter to pass these quotes through,
> but I don't know what it is. ;-)
Either ' or \" should have worked. You did do it as a pair, didn't you?
i.e. :
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -o \"-I -p 5432\"
-p /usr/bin/postmaster start > /dev/null 2>&1" < /dev/null
-or-
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -o '-I -p 5432'
-p /usr/bin/postmaster start > /dev/null 2>&1" < /dev/null
Having said that, is -I the correct option? I'm unsure which version
of Postgres you're using, but for 7.1.3 it looks like "-i" to enable
TCP operation (after also modifying the pg_hba.conf file).
--
Regards,
Daryl Tester, Software Wrangler and Bit Herder, IOCANE Pty. Ltd.
"If you've studied your Floyd properly, you'd know that pigs could fly."
-- Primus
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.openprojects.net
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page