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