This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Globally redirecting output elsewhere than /tmp/
- From: Elfyn McBratney <elfyn at emcb dot co dot uk>
- To: fergus at bonhard dot uklinux dot net
- Cc: cygwin at cygwin dot com
- Date: Thu, 10 Jul 2003 17:22:49 +0100
- Subject: Re: Globally redirecting output elsewhere than /tmp/
- References: <000001c346fe$33097080$6fc82486@medschool.dundee.ac.uk>
- Reply-to: cygwin at cygwin dot com
On Thu, 10 Jul 2003 fergus@bonhard.uklinux.net wrote:
> The directory /tmp seems to be hardwired into some applications as a
> repository for temporary files created during those applications' activity.
> (Rather than using env. vars. TEMP or TMP, I mean.)
'/tmp' is the UNIX 'Recycle Bin'. Some programs may have hard-coded '/tmp' and
some may use TMP or TMPDIR...
> Is there a way of globally diverting such temporary files elsewhere, as in
> "for /tmp read h:/temp throughout this session"?
>
> I've tried fiddling with all of alias, ln, mount, ..., but none of these
> seem to provide quite what's needed.
Well, `mount' should give you what you want here. Just
mount H:\\temp /tmp
do that before starting Cygwin.
> (Reason for asking: I am still experimenting with portable-Cygwin-on-a-CD.
> Then the un-write-ability of the directory /tmp and possibly of other
> directories too is occasionally proving to be problematic.)
Elfyn
--
Elfyn McBratney, EMCB
http://www.emcb.co.uk
elfyn@emcb.co.uk
--
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/