supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Re: How can I preserve TMPDIR environment in screen?
       [not found]   ` <22891.53673.752128.65860-DZe9zlIqapONj9Bq2fkWzw@public.gmane.org>
@ 2017-07-16 21:28     ` Jean Louis
  0 siblings, 0 replies; only message in thread
From: Jean Louis @ 2017-07-16 21:28 UTC (permalink / raw)
  To: Mark Diekhans
  Cc: Supervision Mailing List, Jean Louis, screen-users-mXXj517/zsQ

Hello Mark,

Thank you much, that solves it for me. I will use
(setenv in Emacs.

Jean

On Sun, Jul 16, 2017 at 09:50:49PM +0100, Mark Diekhans wrote:
> 
> It's not screen, it's the kernel because screen is sgid,
> for security reasons
> 
> You can have your .emacs reset TMPDIR or have a wrapper script
> that does this.
> 
> Jean Louis <bugs-wP18AZrjrhFHwiGOKpAqag@public.gmane.org> writes:
> > 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
> > 
> > _______________________________________________
> > screen-users mailing list
> > screen-users-mXXj517/zsQ@public.gmane.org
> > https://lists.gnu.org/mailman/listinfo/screen-users

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-16 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20170716202414.GA5108@protected.rcdrun.com>
     [not found] ` <22891.53673.752128.65860@kestrel.local>
     [not found]   ` <22891.53673.752128.65860-DZe9zlIqapONj9Bq2fkWzw@public.gmane.org>
2017-07-16 21:28     ` How can I preserve TMPDIR environment in screen? Jean Louis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).