Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: Subject: RE: Can ipc-daemon2 put its files in directory other than /tmp? Date: Sat, 6 Mar 2004 14:11:54 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <40499108.AF81318A@dessent.net> To mount /tmp in a "proper" way... Why not use "$TMP" or "$TEMP" as below? $ set | grep TMP TMP=/cygdrive/d/TEMP TMPDIR=/cygdrive/d/TEMP $ mount "$(cygpath -w $TMP)" "/tmp" <- HERE $ mount | grep TEMP d:\TEMP on /tmp type system (binmode) $ (sidenote: My D drive is an old 8GB drive, dedicated to temp-files) Not cygwin; i.e. OT: You DO have TMP and TEMP set for Windows/"DOS", don't you? [related: virtual memory/paging file drive; Win 2000: System properties/ Advanced/ Performance options/ Virtual memory/ Change/* ] IMO it seems stupid to not have it set; i.e. define it be somewhere else than on a system partition or drive, also avoiding other active drives. Probably best set to a dedicated drive on a spare IDE chain. The lower the spec on your computer, the more urgent it will be - improves performance to some degree. /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Brian Dessent > Sent: Saturday, March 06, 2004 9:51 AM > To: cygwin AT cygwin DOT com > Subject: Re: Can ipc-daemon2 put its files in directory other than /tmp? > > > David Garamond wrote: > > > > I'm trying to bundle postgresql + cygwin in a single distribution for my > > clients. The goal is that a user can just extract the .zip file and run > > postgresql there (ipc-daemon2 + pg_ctl start; initdb need not be done > > because a zipped 'virgin' data dir will also be provided). Target > > platforms are Win98SE and WinXP Pro. The target machines do not have > > Cygwin installed. > > > > It's pretty simple to do that. I just put all the files under > > postgresql-7.4.1\bin\, including many Cygwin DLLs, several needed > > commands like grep, basename, cat, chmod, sed, etc. And of course, > > postgres.exe, postmaster.exe (which I copied from postgres.exe; > > originally it was a symlink to postgres), and ipc-daemon2.exe. > > > > However, ipc-daemon2.exe seems to always look for /tmp (which is > > c:\cygwin\tmp). On Win98, it seems to be able to use c:\tmp if > > c:\cygwin\tmp doesn't exist, but on WinXP Pro it can't. > > > > Rather than creating c:\cygwin\tmp, can I make ipc-daemon2 put > > MultiFileMsg* and MultiFileShm* in some other place? > > You know you can mount /tmp to any directory, right? Since you > presumably have a startup script to kick things off, why not just do > something like the following, assuming the current dir is your install > dir: > > mkdir tmp > mount -b "`cygpath -am .`" /tmp > > If you know the full pathname of the directory you can use that instead > of cygpath, i.e. > > mount -b "c:/program files/whatever/tmp" /tmp > > You should probably do this for /bin as well. See the manpage for more. > > Brian > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/