Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Stata see host name on SSH?
From 
 
Austin Nichols <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: Stata see host name on SSH? 
Date 
 
Wed, 9 Nov 2011 11:46:14 -0500 
Paul Burkander <[email protected]>:
help extended_fcn
points to the
 Macro extended function for accessing operating-system parameters
On Wed, Nov 9, 2011 at 11:38 AM, Paul Burkander <[email protected]> wrote:
> I primarily run stata over a server using ssh.  Each time I log in,
> I'm randomly assigned a machine.  I think it would be useful to, in my
> log file, make it obvious what machine I'm using.  I naively thought I
> could do this using shell and then echo $HOST in my do file, but I
> don't know how to pass commands to the shell from the do file.
>
> Is there any easy way to record host info in the log file?
>
> Thanks,
> Paul
*
*   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/