Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: re: re: Can Stata access the SGE_TASK_ID environment variable (from


From   Jeph Herrin <junk@spandrel.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: re: re: Can Stata access the SGE_TASK_ID environment variable (from
Date   Thu, 22 Oct 2009 08:44:11 -0400


Nice, I never noticed that. New to v 11 I guess.

Jonathan.Bartlett@lshtm.ac.uk wrote:
Many thanks to those who replied. As suggested, I contacted Stata Techinical Support. In case its of use to others, they explained to me that the env function could be used:

local x : env SGE_TASK_ID


to save an environment variable to a local macro.


Jonathan

Kit Baum <kitbaum@me.com> 20/10/09 2:00 AM >>>
previous posting can be done as a one-liner in Mata:

shell env | grep "PATH=" > /tmp/_path
mata: st_local("_path",fget(fopen("/tmp/_path","r")))
di "path is `_path'"

Kit Baum
kitbaum@me.com



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
</kitbaum@me.com>


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index