home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
- From: dattier@ddsw1.mcs.com (David W. Tamkin)
- Subject: Re: .forward
- Message-ID: <1992Jul26.023700.7813@ddsw1.mcs.com>
- Organization: Contributor Account at ddsw1, Chicago, Illinois 60657
- References: <y9fm+cq.rons@netcom.com> <MJN.92Jul25040836@pseudo.uucp> <1992Jul25.152416.21141@news.eng.convex.com>
- Date: Sun, 26 Jul 1992 02:37:00 GMT
- X-Disclaimer: Material posted in this article is the sole responsibility of
- the poster and does not represent MCSNet or the system owners.
- Lines: 44
-
- tchrist@convex.COM (Tom Christiansen) wrote in
- <1992Jul25.152416.21141@news.eng.convex.com>:
-
- TC> From the keyboard of mjn@pseudo.uucp (Murray Nesbitt):
-
- MN> rons@netcom.com (Ron Sires) writes:
-
- RS> When the .forward file is executed, there isn't a PATH variable defined.
- RS> This means that UNIX doesn't know where to look for the "cat" command.
- RS> Try including the full path to cat and, while you're at it, the full path
- RS> to tmp, too.
-
- One cannot be sure of what the daemon's PATH is nor of its cwd (well, I found
- out by having .forward echo $PATH and `pwd` to a file).
-
- MN> Unless a .forward file does something *drastically* different from
- MN> when I last used one, it simply forwards mail to the account[s]
- MN> specified in the file. Thus an appropriate entry might be:
-
- MN> me@someother.machine
-
- TC> A .forward file can be used to direct things into a pipe on many systems.
- TC> You just have to remember that you won't have any decent environment
- TC> set up for you, like cwd or envariables.
-
- You can set an environment up for yourself. This my .forward under Dell SVR4
- here on ddsw1, and I have one under the System V version running on gagme
- that is identical except for the name of my $HOME and except for the PATH,
- because there are some differences between the two sites in the names of
- directories that hold the executables:
-
- "| ( HOME=/user/contrib/dattier TZ=CST6CDT
- PATH=/usr/bin:/etc:/usr/ucb:/lbin:/sbin:/usr/sbin:$HOME/scripts:/bin
- export HOME TZ PATH
- filter -vo $HOME/.elm/filtererrors
- date +%T >> $HOME/.elm/filterlog )"
-
- I could even have thrown a cd in there if I wanted it. Note that defining
- a PATH absolves me from giving the full paths to filter and date. It also
- relieves me of specifying full paths to the commands in 'execute' instruc-
- tions in .elm/filter-rules.
-
- David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
-