From: Kuldeep j. <kul...@re...> - 2005-06-07 05:24:47
|
=0AHi all,=0A=0AI want to get the environment variables & also set them f= or a remote=0ALinux machine.=0A=0AIn case of Windows as they are stored in = the registry. So by using =0Athe "reg save" I can save that registry entry = in a hive(.hiv) file =0A& I can use "reg restore" to restore back those env= ironment variables=0Afrom the hive file.I am doing it in my Java code by us= ing the submit()=0Amethod of 'STAFHandle' & 'PROCESS' service.=0A=0AI know = that the command "STAF machinename VAR LIST" gives all the environment vari= ables, but from these how to identify System/User environment variables.=0A= =0ARegards,=0A=0AKuldeep Jain |