Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2, - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2,
Date
Msg-id 20030512183546.GG1708@tishler.net
Whole thread Raw
In response to Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2,  (Frank Seesink <frank@mail.wvnet.edu>)
Responses Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2,
List 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


pgsql-cygwin by date:

Previous
From: Frank Seesink
Date:
Subject: Re: UPDATE 2: Windows XP, Cygwin 1.3.22-1, PostgreSQL 7.3.2,
Next
From: Jason Tishler
Date:
Subject: Re: vacuumdb and pg_dump are not running under cron