LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Ian Hogben <hogbender@westnet.com.au>
  To  : <linuxsa@linuxsa.org.au>
  Date: Wed, 1 Jan 2003 11:42:12 +0800

Hello, list:

I was never very good with shell vaguaries, and this highlights just how
weak I am here. Apologies for a FAQ.

I am trying to start postgres so that it listens to port 5432. As far as
I can see, the default method of starting is to not listen to TCP. The
actual factual line in the init.d script from a Mandrake 9 system is as
follows:

su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p
/usr/bin/postmaster start  > /dev/null 2>&1" < /dev/null

Now, in order to add "-i -p 5432" to the above, I need to make it look
like this:

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. ;-)

Thanks,

=-=-=-=-=-=-=-=-
Ian Hogben

-- 
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