home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / shell / 5492 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  830 b 

  1. Path: sparky!uunet!ukma!gatech!news.ans.net!cmcl2!sales!elouie
  2. From: elouie@sales.GBA.NYU.EDU (Euge)
  3. Newsgroups: comp.unix.shell
  4. Subject: Setting enviroment variables in a shell script
  5. Keywords: environment variables shell script
  6. Message-ID: <35774@sales.GBA.NYU.EDU>
  7. Date: 24 Jan 93 16:28:25 GMT
  8. Organization: NYU Stern School of Business
  9. Lines: 5
  10.  
  11. How do you set an environment variable in a C-Shell script?  I tried
  12. setenv enviroment_variable value, but as soon as the script finishes, the value of the varialbe is reset to its original value.  My guess is that another "process" is created during the run of the script and when the script is done, that process is killed.  Is there a way to set environment variables in a shell script?  Thanks.
  13.  
  14. Please post responses to this newsgroup or email to elouie@sales.stern.nyu.edu
  15.  
  16.