home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9297 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.7 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!elroy.jpl.nasa.gov!ames!lll-winken!iggy.GW.Vitalink.COM!widener!eff!ckd
  2. From: ckd@eff.org (Christopher Davis)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: .forward
  5. Message-ID: <CKD.92Jul22145356@loiosh.eff.org>
  6. Date: 22 Jul 92 18:56:08 GMT
  7. References: <31485@adm.brl.mil>
  8. Sender: usenet@eff.org (NNTP News Poster)
  9. Organization: Electronic Frontier Foundation Tech Central
  10. Lines: 27
  11. In-Reply-To: ntucs73@csman.csie.ntu.edu.tw's message of 22 Jul 92 01:54:12 GMT
  12. Nntp-Posting-Host: loiosh.eff.org
  13.  
  14. CSIE> == CSIE 73 student <ntucs73@csman.csie.ntu.edu.tw> 
  15.  
  16.  CSIE>     Is there anyone able to tell me the correct format about
  17.  CSIE> ".forward" file ?  I write a line in my local .forward as
  18.  CSIE> following :
  19.  
  20.  CSIE>      "| cat >> tmp "
  21.  
  22.  CSIE>     But I found nothing happened.  IS something wrong with it ?
  23.  
  24. Well, besides the fact that "cat" does no locking whatsoever, there's
  25. also the problem that you seem to be assuming that the mailer is
  26. defaulting to your home directory when running your .forward.
  27.  
  28. It's not (as many csh-scripters learn to their dismay when they get
  29. errors like "getwd: can't stat .").  It's often /usr/spool/mqueue, which
  30. you probably can't even cd to, let alone write in.
  31.  
  32. You have the syntax right, however.  You might want to look into
  33. something like deliver, procmail, or elm's filter as a program to put in
  34. your .forward--these are all designed to be called in .forward, and have
  35. documentation & stuff :)
  36. --
  37. Christopher Davis * ckd@eff.org * System Administrator, EFF * +1 617 864 0665
  38.    ``The First Amendment is often inconvenient.  But that is besides the
  39.   point.  Inconvenience does not absolve the government of its obligation
  40.          to tolerate speech.'' --Justice Anthony Kennedy, in 91-155
  41.