[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I preserve TMPDIR environment in screen?

From: Jean Louis
Subject: How can I preserve TMPDIR environment in screen?
Date: Sun, 16 Jul 2017 23:24:14 +0300


I am using screen in following peculiar manner, down below.

And I am trying to test it to change the TMPDIR variable.

$ env SOMETHING=OK TMPDIR=/var/tmp/ screen -l -S emacs -D -m -- emacs

So that above does not work, the TMPDIR is not preserved. I can then
test it in Emacs with (getenv "TMPDIR") it is nil.


Can I understand why is screen deleting my TMPDIR? I need it.

Jean Louis

#!/bin/execlineb -P
if { s6-test -d /home/data1/protected/Work }
s6-setuidgid admin
backtick -n HOME { homeof admin }
backtick -n PATH { echo 
backtick -n MAILDIR { echo "/home/data1/protected/Maildir" }
backtick -n LC_ALL { echo "en_US.UTF-8" }
backtick -n TMPDIR { echo "/home/data1/protected/tmp" }
/usr/bin/screen -l -S emacs -D -m --
/usr/bin/emacs --user admin --chdir /home/data1/protected

reply via email to

[Prev in Thread] Current Thread [Next in Thread]