Results 1 to 1 of 1
Hi,
I have written a shell script to read the CLASSPATH value from Windows registry. Lets consider the CLASSPATH value is:
"E:\Install\IA\vod800_cp_nonad_silent\lib\vodjdo.j ar;E:\Install\IA\vod800_cp_nonad_silent\lib\guitoo ls.jar;"
This is my script:
Code:
GetClassPath=`reg.exe ...
- 01-02-2009 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 59
reading CLASSPATH value [backslash issue]
Hi,
I have written a shell script to read the CLASSPATH value from Windows registry. Lets consider the CLASSPATH value is:
"E:\Install\IA\vod800_cp_nonad_silent\lib\vodjdo.j ar;E:\Install\IA\vod800_cp_nonad_silent\lib\guitoo ls.jar;"
This is my script:
The output is:Code:GetClassPath=`reg.exe QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v CLASSPATH | grep CLASSPATH | awk '{print $3}'` echo 'ClassPath=' "$GetClassPath"
I guess its because of "\v" in the values. How do I avoid this? Can I use 'tr', so that I get the value in proper format?Code:ClassPath= E:\Install\IA od800_cp_nonad_silent\lib odjdo.jar;E:\Install\IA od800_cp_nonad_silent\lib\guitools.jar;
Thanks!


Reply With Quote