[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 |
Hello,
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.
But SOMETHING is "OK".
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
"/home/data1/protected/Programming/perl5/bin:/home/data1/protected/bin:/home/data1/protected/bin/rcd:/home/data1/protected/.local/bin:/home/data1/protected/bin:/home/data1/protected/perl5/bin:/home/data1/protected/bin:/home/data1/protected/bin/rcd:/home/data1/protected/.local/bin:/usr/local/bin:/bin:/usr/bin:/opt/texlive/2015/bin/x86_64-linux:/opt/jdk/bin:/opt/qt4/bin:/opt/qt5/bin:/usr/libexec:/opt/rakudo-star-2016.07/bin:/opt/rakudo-star-2016.07/share/perl6/site/bin:/home/data1/protected/Programming/git/fgallery:/usr/libexec:/opt/rakudo-star-2016.07/bin:/opt/rakudo-star-2016.07/share/perl6/site/bin:/home/data1/protected/Programming/git/fgallery"
}
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
- How can I preserve TMPDIR environment in screen?,
Jean Louis <=