Re: [SmartFrog-support] question on naming of components

"Guijarro, Julio" <[email protected]> Fri, 26 Jan 2007 15:58:55 -0000
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <[email protected]>
Windows is "USERNAME".

The jvm has a system property called: "user.name" that you can use. I
don't know how accurate it is. 


J

-----Original Message-----
From: Andreas Unterkircher [mailto:[email protected]] 
Sent: 26 January 2007 15:46
To: Guijarro, Julio
Cc: smartfrog-support
Subject: Re: [SmartFrog-support] question on naming of components

Guijarro, Julio wrote:
> Hi Andreas,
> 
> How will you provide the username? 

Unfortunately there seems to be no standard in Linux (any Linux experts 
on this mailing list know more about this ?). E.g. on my machine (SLC4) 
I have a variable USERNAME, my colleague (Fedora) has LOGNAME. One 
possibility would be to use the output of "whoami" which - I think - 
should be present on all Linux installations.
For Windows I don't know...
In any case this additional feature of putting the username in the 
component should be optional (this could be easily driven by some setSF*

file).

> The easiest way is to modify the "smartfrog" script . In the long
term,
> we could modify the scripts so that they prefix the component name
with
> an environment property if it exists and you would only need to
provide
> that property (We accept patches :-) )
> 
> What do you think?
> 
> Julio
> 
> -----Original Message-----
> From: smartfrog-support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:smartfrog-support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
> Andreas Unterkircher
> Sent: 26 January 2007 14:27
> To: smartfrog-support
> Subject: [Smartfrog-support] question on naming of components
> 
> Hello,
> 
> we'd like to know who deployed a component by having the username in
the
> 
> components name, e.g. one would have to do something like this:
> 
> sfStart host1 username_myComponent txt.sf
> 
> Now I'd like to have the username added automatically, i.e. the user
> types
> 
> sfStart host1 myComponent txt.sf
> 
> and the component gets deployed as username_myComponent.
> The most obvious way to achieve this for me would be to modify the 
> sfStart script. I wonder if there is some other (easy) way to achieve 
> this in SmartFrog ?
> 
> Thanks,
> Andreas
> 
> 
>
------------------------------------------------------------------------
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> V
> _______________________________________________
> Smartfrog-support mailing list
> Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-support


-- 
Andreas Unterkircher
IT Department
Grid Deployment Group
CERN
CH-1211 Geneva 23

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV