home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / sysadmin / 7109 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.5 KB  |  41 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!nugget.rmNUG.ORG!jacob
  3. From: jacob@nugget.rmNUG.ORG (Jacob Gore)
  4. Subject: Re: Netinfo aliasing & scripts
  5. Message-ID: <1992Dec17.191737.22837@nugget.rmNUG.ORG>
  6. Organization: Rocky Mountain NeXT Users' Group
  7. References: <1992Dec15.195116.22956@magnus.acs.ohio-state.edu>
  8. Date: Thu, 17 Dec 1992 19:17:37 GMT
  9. Lines: 30
  10.  
  11. Shane M Zatezalo:
  12. > Is there a way to define an alias in the NetInfoDB that would, upon
  13. > it receiving mail, run a script?
  14.  
  15. For mail from a local account, yes:
  16.  
  17.     echo 'alias_name: |/full/path/scriptname' | niload aliases /
  18.  
  19. If not a net-wide alias, the last "/" needs to be a "." (or some
  20. mid-level NetInfo domain if you have more than two levels).  You can
  21. also use NetInfoManager to achieve the same result, if you're into
  22. pseudoconsistent graphical interfaces.
  23.  
  24. The script gets run under the uid/gid of the sender.
  25.  
  26. What if the mail comes from another machine, making it impossible to
  27. use the sender's uid/gid?  It fails.  So if you want to send mail to
  28. this alias from outside, you need to create an account named after
  29. that alias, and put the "|/full/path/scriptname" string into
  30. ~alias_name/.forward .
  31.  
  32. > (I'm trying to figure out an easy way to do a mailing list)
  33.  
  34. I'd look for a list-server package... I bet there's one in
  35. comp.sources.unix archives on ftp.uu.net.
  36.  
  37. Jacob
  38. --
  39. Jacob Gore, Eastern NM U.   Jacob@BlackBox.ENMU.Edu | Jacob@Gore.Com
  40. Member of the League for Programming Freedom (LPF)--lpf@uunet.uu.net
  41.