Globally redirecting output elsewhere than /tmp/
Elfyn McBratney
elfyn@emcb.co.uk
Thu Jul 10 16:31:00 GMT 2003
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/
More information about the Cygwin
mailing list