Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNIX system variables

Status
Not open for further replies.

theSeeker03

Programmer
Jan 16, 2004
17
US
How can read a value of a UNIX system variable? if i could see just one example ... thanks
 
You get a few values this way:

Code:
Properties p = System.getProperties ();
p.list (System.out);

Specific other values might be read with 'Runtime.exec' and redirecting Sytem.out.
Perhaps there are better solutions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top