home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9426 < prev    next >
Encoding:
Text File  |  1992-07-25  |  2.0 KB  |  57 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: .forward
  5. Message-ID: <1992Jul25.152416.21141@news.eng.convex.com>
  6. Originator: tchrist@pixel.convex.com
  7. Sender: usenet@news.eng.convex.com (news access account)
  8. Nntp-Posting-Host: pixel.convex.com
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. Organization: CONVEX Realtime Development, Colorado Springs, CO
  11. References: <31485@adm.brl.mil> <y9fm+cq.rons@netcom.com> <MJN.92Jul25040836@pseudo.uucp>
  12. Date: Sat, 25 Jul 1992 15:24:16 GMT
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 39
  17.  
  18. From the keyboard of mjn@pseudo.uucp (Murray Nesbitt):
  19. :
  20. :rons@netcom.com (Ron Sires) writes:
  21. :
  22. :>ntucs73@csman.csie.ntu.edu.tw (CSIE 73 student) writes:
  23. :
  24. :>>Hi,
  25. :>>   Is there anyone able to tell me the correct format about ".forward" file ?
  26. :>>   
  27. :>>    I write a line in my local .forward as following :
  28. :>>    
  29. :>>     "| cat >> tmp "
  30. :>>
  31. :>>    But I found nothing happened.  IS something wrong with it ?
  32. :
  33. :> When the .forward file is executed, there isn't a PATH variable defined.
  34. :> This means that UNIX doesn't know where to look for the "cat" command.  Try
  35. :> including the full path to cat and, while you're at it, the full path to
  36. :> tmp, too.
  37. :
  38. :Uh...yeah.
  39. :
  40. :Unless a .forward file does something *drastically* different from
  41. :when I last used one, it simply forwards mail to the account[s]
  42. :specified in the file.  Thus an appropriate entry might be:
  43.  
  44. :    me@someother.machine
  45.  
  46. A .forward file can be used to direct things into a pipe on many systems.
  47. You just have to remember that you won't have any decent environment 
  48. set up for you, like cwd or envariables.
  49.  
  50. --tom
  51.  
  52. -- 
  53.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  54.  
  55. "The number of UNIX installations has grown to 10, with more expected."
  56.     - _The UNIX Programmer's Manual_, Second Edition, June, 1972.
  57.