• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting variables from bash  RSS feed

 
Erik Stagg
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i make a variable in the command line (unix) called CDDB, and i need to use it in my program. I use this code to find all the environment variables in java and its not listed.



is there some other way to get it?
 
Erik Stagg
Greenhorn
Posts: 7
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nvm figure it out

i didnt know i had to export the variable, then it showed up.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!