Thread View: news.software.nn
2 messages
2 total messages
Started by John Ladwig
Wed, 02 Nov 1994 00:31
Global initialization for "mail" variable possible?
Author: John Ladwig
Date: Wed, 02 Nov 1994 00:31
Date: Wed, 02 Nov 1994 00:31
26 lines
1706 bytes
1706 bytes
I've had a number of people ask me how to set up mail notification in
NN. I can point them all to creating a .nn/init file, and adding the
appropriate variable, or provide a template init file which tells them
what to edit.
The thing is, the "mail" variable is per-user specific, but extremely
predictable. In fact, the variant part is already in the NN program's
environment.
Is there any way to read environment variables into string variables
within an initialization file?
I'd love to set up the global $LIB/init file with:
mail /usr/spool/mail/$USER
but it seems a lost cause.
Short of a source dive, is there any way to get what I'm looking for?
-jml
--
UMN Dept. of Soil Science; St. Paul, MN, USA | Internet: jladwig@soils.umn.edu
http://www.soils.umn.edu/~jladwig/ | MIME/PGP accepted
I saw the worst bands of my generation/ | Finger for geek code
applied by magic marker to drywall -TMBG | and PGP public key
Re: Global initialization for "mail" variable possible?
Author: Kai Voigt
Date: Fri, 04 Nov 1994 07:09
Date: Fri, 04 Nov 1994 07:09
29 lines
1737 bytes
1737 bytes
In <jladwig.783736316@saturn> jladwig@soils.umn.edu (John Ladwig) writes:
>I've had a number of people ask me how to set up mail notification in
>NN. I can point them all to creating a .nn/init file, and adding the
>appropriate variable, or provide a template init file which tells them
>what to edit.
>The thing is, the "mail" variable is per-user specific, but extremely
>predictable. In fact, the variant part is already in the NN program's
>environment.
>Is there any way to read environment variables into string variables
>within an initialization file?
>I'd love to set up the global $LIB/init file with:
> mail /usr/spool/mail/$USER
I have the following line in my global init file:
set mail /var/spool/mail/$USERNAME
Works fine...
Kai
--
Kai Voigt, Werftstrasse 2, 24148 Kiel, Germany, +49 431 7297514
"sendmail.cf looks like a context diff of two core files."
-- sjm@ra12.curtin.edu.au (Simon Mackinlay)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads