[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-users] How to change Pan's temp(orary) path to somewhere else?
From: |
Ant |
Subject: |
Re: [Pan-users] How to change Pan's temp(orary) path to somewhere else? |
Date: |
Sat, 2 Feb 2013 07:51:31 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
> > > In my script to invoke Pan, I have
> > >
> > > export TMP=/scratch/tmp
> > >
> > > so apparently I used to have the same problem in some forgotten past :-)
> >
> > Thanks. So, there's no way to do it for Pan only and not everyone's tmp?
> > :(
>
> Yes, it is effective only for Pan, since I put it in the script that I
> use to start it. (I often make little scripts to collect my favourite
> options to common commands). Rememer that the environment variables are
> inherited only by child processes, they don't propagate up or sideways
> or anything. So once this script terminates, the value is gone. The same
> is true for the ulimit values I set below.
>
> The full script goes like this:
>
> #!/bin/sh
> ulimit -Sd $(ulimit -Hd) # datasize
> ulimit -Sn 1772 # nofiles
> ulimit -Sc 0 # coredumpsize
> export TMP=/scratch/tmp
> exec /usr/pkg/bin/pan "$@"
>
> I use "exec" at the end because the invocation of pan is the last thing
> in the script, so we don't need the shell any more and we can re-use its
> process to run pan.
Ahh! I will try that later then. Thanks. :)
--
Quote of the Week: "I have to sit up with a sick ant." --unknown
/\___/\ Ant(Dude) @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| | E-mail: address@hidden/address@hidden
\ _ / If crediting, then please kindly use Ant nickname
( ) and AQFL URL/link.