[H-GEN] Java Stuff

Scott Pullen spullen at optusnet.com.au
Wed Apr 30 08:15:55 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Sorry for the pre-emptive posting.  It seems relatively easy to get a number
of environment variables by using the getProperties method an parsing the
output or getProperties and asking for the one you want.

The username can be acquired by using code like the following:

String username = System.getProperty("user.name");

Once again, sorry for jumping the gun,

Cheers,

Scott.


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list