home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / mail / elm / 3746 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  2.0 KB

  1. Path: sparky!uunet!spool.mu.edu!dsinc!dsinc!not-for-mail
  2. From: syd@dsi.com (Syd Weinstein)
  3. Newsgroups: comp.mail.elm
  4. Subject: Re: Starting newmail automatically...
  5. Date: 15 Dec 1992 12:22:41 -0500
  6. Organization: Datacomp Systems, Inc., Huntingdon Valley, PA
  7. Lines: 36
  8. Message-ID: <1gl491INNe7o@dsinc.dsi.com>
  9. References: <1992Dec15.133757.13071@let.ruu.nl>
  10. Reply-To: syd@DSI.COM
  11. NNTP-Posting-Host: dsinc.dsi.com
  12.  
  13. jeroen@let.ruu.nl (Jeroen Scheerder) writes:
  14.  
  15. >I have a tiny problem trying to start newmail the following way:
  16.  
  17. >    * my .login file calls a file .startup if possible;
  18. >    * in .startup (which is different for all the machines I use)
  19. >      on some machines newmail is invoked.
  20.  
  21. >The problem is, newmail decides not to run in this scheme. When I call
  22. >it from .login there is no problem.
  23.  
  24. >I suspect it has something to do with the parent process terminating:
  25. >however, starting it as "nohup newmail" doesn't help, neither does
  26. >using "source .startup" or "exec .startup".
  27.  
  28. >Is this a bug, am I doing something wrong or am I trying the
  29. >impossible?
  30.  
  31. Well, there is some code, controlled by PIDCHECK in newmail.c, that
  32. checks to see if the parent PID of newmail exited.  If it did,
  33. newmail exits.  They code handles systems where there sighup
  34. signal never gets to newmail, and it never exits.
  35.  
  36. Now, running newmail from .login works, because the shell
  37. does a source .login.  If .login also does a source .startup,
  38. and newmail is run directly from .startup (& on the end of
  39. the newmail command allowed, it figures that out), then
  40. it should work.  However, if the parent shell of newmail is
  41. not the current shell, it will exit. Thus, no () on the
  42. newmail line, and no nohup either (that also causes the
  43. parent problem)
  44. -- 
  45. ========================================================================
  46. Sydney S. Weinstein, CDP, CCP          Elm Coordinator - Current 2.4PL17
  47. Datacomp Systems, Inc.                 Projected 3.0 Release: ??? ?,1994
  48. syd@DSI.COM or dsinc!syd      Voice: (215) 947-9900, FAX: (215) 938-0235
  49.