On Tue, May 13, 2003 at 01:41:52PM -0400, Frank Seesink wrote:
> Jason Tishler wrote:
> >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.
> First, the "Allow service to interact with destkop" setting is only
> available when the service is started under the Local System account.
Oops, sorry for the misinformation. Shame on me -- I should have
checked again before writing the above.
> So short of another means (possibly some kind of script--avoiding
> desktop interaction--which saves the environment table to a file),
> not sure how to tell other than looking at source.
I just checked the source (cygrunsrv.cc:1076,1084):
char *env_path = getenv ("PATH");
setenv ("PATH", "/bin", 1);
char env_tmp[strlen (env_path) + 6];
***> strcat (strcpy (env_tmp, env_path), ":/bin"); <***
setenv ("PATH", env_tmp, 1);
Hence, "/bin" is appended not prepended.
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
pgsql-cygwin by date
|Next:||From: Jason Tishler||Date: 2003-05-14 12:09:28|
|Subject: Re: Postgres solution?|
|Previous:||From: Jason Tishler||Date: 2003-05-14 11:17:43|
|Subject: Re: intidb problems while installing postgresql on windows xp|