home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3072 next >
Encoding:
Text File  |  1992-07-20  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!marlin.jcu.edu.au!solwarra.gbrmpa.gov.au!wayne
  3. From: wayne@gbrmpa.gov.au (Wayne Amisano)
  4. Subject: setting variable from script to current environment??
  5. Message-ID: <1992Jul21.070212.16485@gbrmpa.gov.au>
  6. Organization: Great Barrier Reef Marine Park Authority
  7. Date: Tue, 21 Jul 1992 07:02:12 GMT
  8. Lines: 19
  9.  
  10. Hi,
  11.  
  12. I am trying to write a script to set an environment variable in
  13. my tcsh environment.  I could use an alias to do it, but would
  14. much rather do it from a script.  What i need to do is, run a
  15. script to change the value of one environment variable, but
  16. every time i do this, it changes the variable in the spawned
  17. process, but it then disappears when it dies.
  18.  
  19. I need this variable to remain around!!  Any ideas would be welcome.
  20.  
  21. tnx cul wayne!!
  22.  
  23.  
  24. -- 
  25. Wayne Amisano (VK4KT)     _-_|\\    E-Mail - wayne@gbrmpa.gov.au
  26. Great Barrier Reef       /     \\   Phone  - +61 77 81 8861 (GMT+1000)
  27. Marine Park Authority.   \_.-._/    Fax    - +61 77 72 6093
  28. Our's to use Wisely!          v     Mail   - GPO Box 1379, Townsville QLD 4810
  29.