Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2,

From: Jason Tishler <jason(at)tishler(dot)net>
To: Frank Seesink <frank(at)mail(dot)wvnet(dot)edu>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2,
Date: 2003-05-12 18:35:46
Message-ID: 20030512183546.GG1708@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Frank,

On Mon, May 12, 2003 at 01:22:03PM -0400, Frank Seesink wrote:
> Jason Tishler wrote:
> This seems to imply that this is automagically done by cygrunsrv. But
> how do you make sure the Cygwin bin directories are searched FIRST?
> The above section of help just says ".../bin is always added to
> $PATH...", but doesn't state if at the end (which I would assume is
> the case) or the beginning. And how could one tell?

Use the following procedure:

1. Install bash as a service via cygrunsrv.
2. Allow it to interact with the desktop.
3. Start the service.
4. Execute "echo $PATH" when it pops up.

> Never mind. Just looked in /usr/doc/Cygwin/cygrunsrv.README, and it
> contains the following info (emphasis mine):
> ______________________________________________________________________
> ...In the 'daemonize' mode, cygrunsrv sets up
> the environment (according to flags set via the 'commandline'
> mode). It adds '/bin' TO _THE FRONT_ of the PATH so that the
> target service can find cygwin1.dll easily.
> ______________________________________________________________________

If cygrunsrv prepends /bin then with should be OK.

> Further down is more info on how -env works:
> ______________________________________________________________________
> ...
> -e, --env <VAR=value>
> Optional environment strings which are added to the environment
> when the service is started. You can add up to 255 environment strings
> using multiple `--env' options. Note that '/bin:' is always appended
^^^^^^^^
> to the path to allow started applications to find cygwin1.dll. You
> may also specify PATH=/a/path:/list if you like, but /bin WILL be
> appended.
^^^^^^^^

However, the above seems to indicate that /bin is appended.

I guess that the above procedure may have to be used after all or the
source code consulted to resolve this issue....

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jeff Lu 2003-05-12 18:57:32 Re: vacuumdb and pg_dump are not running under cron
Previous Message Frank Seesink 2003-05-12 17:22:03 Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2,