Thanks for the informative (and exhaustive) link!  I ended up going with the 
$SSH_CLIENT check.  It works, but I just hope it doesn’t change with new 
releases of OS X...
-Carl

> On May 20, 2015, at 6:43 PM, steve harley <st...@paper-ape.com> wrote:
> 
> On 2015-05-20 16:14 , Carl Hoefs wrote:
> 
>> I could check for the existence of the $TERM_PROGRAM or $SSH_CLIENT env 
>> vars, but I’m thinking there must be a better way to do this?
> 
> consensus on stackexchange is to test the env vars
> 
> <http://unix.stackexchange.com/questions/9605/how-can-i-detect-if-the-shell-is-controlled-from-ssh>
> 
> also note the $(who am i) solution
> _______________________________________________
> MacOSX-talk mailing list
> MacOSX-talk@omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-talk

_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@omnigroup.com
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to