Statalist


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

Re: st: Can Stata access the SGE_TASK_ID environment variable (from Sun's Grid Engine) on linux?


From   Sergiy Radyakin <[email protected]>
To   [email protected]
Subject   Re: st: Can Stata access the SGE_TASK_ID environment variable (from Sun's Grid Engine) on linux?
Date   Mon, 19 Oct 2009 18:02:26 -0400

How do you do it in C++ ? Write a plugin that saves this value to a
local, then use it in Stata.
S.R.

On Mon, Oct 19, 2009 at 5:32 PM, Maarten buis <[email protected]> wrote:
> --- On Mon, 19/10/09, [email protected] wrote:
>> I am trying to find out if, and if so how, I can access the
>> SGE_TASK_ID environment variable when running on linux? The
>> page http://www.stata.com/support/faqs/unix/environ.html
>> does not include this variable, so am I correct to conclude
>> that by omission SGE_TASK_ID cannot be accessed?
>>
>> I am using Stata on a high performance cluster, which is
>> running the Sun Grid Engine. I would like to able to load
>> the SGE_TASK_ID environment variable at the top of my do
>> file and use it to set the random number seed. Previously I
>> have been using R, and have been able to load this variable
>> using Sys.getenv("SGE_TASK_ID").
>
> This seems more a question for Stata's Tech support:
> http://www.stata.com/support/tech-support/tech2.html
>
> There is nothing against posting questions like this on
> statalist, you are just more likely to find someone at Tech
> support who knows the answer. (Besides that, you or your
> institution had to pay for Stata, so why not enjoy the
> benefits?)
>
> -- Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
>
> http://www.maartenbuis.nl
> --------------------------
>
> Send instant messages to your online friends http://uk.messenger.yahoo.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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index