Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-cygwin

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


PGP/GPG Key: or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

In response to


pgsql-cygwin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group