Exporting Environmental Variables

From: Carl Schreck <cjschrec_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 25 2014 - 08:53:32 MDT

Is there a way for NCL to set an environmental variable, such that it could
be accessed by bash after NCL exits?

It seems like it has very short-term memory:

ncl 8> system( "export TEMP=hello; echo $TEMP")
hello
ncl 9> system( "echo $TEMP")
*[blank line]*

Thanks!

    Carl

-- 
 <http://www.cicsnc.org/>
 <http://www.facebook.com/cicsnc>
*Carl J. Schreck III, PhD*
*Research Associate*
Cooperative Institute for Climate and Satellites NC <http://cicsnc.org/>
North Carolina State University <http://ncsu.edu/>
NOAA's National Climatic Data Center <http://ncdc.noaa.gov/>
151 Patton Ave, Asheville, NC 28801
e: cjschrec@ncsu.edu
o: +1 828 257 3140
CycloneCenter.org: Help analyze tropical cyclones<http://cyclonecenter.org/>
monitor.cicsnc.org/mjo: See recent MJO
diagnostics<http://monitor.cicsnc.org/mjo/>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 25 08:57:13 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 31 2014 - 11:47:09 MDT