Mikkel L. Ellertson wrote:
<snip>
The way I do it is to create a tmp directory in each user's home
directory. (Add to /etc/skel) Then I have TMP set to this
directory. (Add local.sh and local.csh in /etc/profile.d) This
works for programs that honor TMP and is easy to add to scripts.
if [ -z $TMP ]
then
temp_file=/tmp/dd.$$
else
temp_file=$TMP/dd.$$
fi
Thanks, Mikkel, for this excellent alternative to using /tmp.
Dean