Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 1996 13:30:12 -0700 (PDT)
From:      Nate Williams <nate>
To:        CVS-committers, cvs-all, cvs-etc
Subject:   cvs commit:  src/etc weekly
Message-ID:  <199605182030.NAA18679@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
nate        96/05/18 13:30:10

  Modified:    etc       weekly
  Log:
  Fixed *annoying* error with the weekly files.  Do you get these whenver
  /etc/weekly is run?
  
  Rebuilding locate database: stty: stdin isn't a terminal TERM: Undefined
  variable.
  
  'su' apparently runs in root's environment before doing a seteuid(), so
  it reads root's .cshrc.  The problem lies in the fact that $prompt is
  *always* set by the time the command is executed, so you can't protect
  your interactive commands from the non-interactive commands by the
  normal:
  
  if ($?prompt) then
     # interactive stuff here
  endif
  
  Set the -f flag (su -fm) which causes it not to read root's .cshrc file,
  since there should be no reason to do so for these scripts since
  /etc/crontab sets up all of the necessary environment.
  
  Revision  Changes    Path
  1.16      +3 -3      src/etc/weekly



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605182030.NAA18679>