This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Globally redirecting output elsewhere than /tmp/

On Thu, 10 Jul 2003 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 McBratney, EMCB

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]