This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Setting Environment Variable
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 09, 2009
06:10 AM
Setting Environment Variable
Hi
I have created one Solaris Installer using InstallAnywhere 2008 Enterprise edition.Now my requirement is to set one solaris environment variable to "null".How can I do it.?
The only option I see is in the "Install" part where I get the action of setting Environment Variable.But what value will I set.Will it be left blank or will it be the string null.?.And is there anything else (for example RefreshEnvironment panel that I have to use after adding this solaris environment variable).
I have created one Solaris Installer using InstallAnywhere 2008 Enterprise edition.Now my requirement is to set one solaris environment variable to "null".How can I do it.?
The only option I see is in the "Install" part where I get the action of setting Environment Variable.But what value will I set.Will it be left blank or will it be the string null.?.And is there anything else (for example RefreshEnvironment panel that I have to use after adding this solaris environment variable).
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 13, 2009
01:10 AM
HI,
write a shell script like this pass the value how you want.
#! /usr/bin/bash
cp /.dtprofile /.dtprofile_backup
grep -v "export TEST_EN_HOME" /.dtprofile_backup > /.dtprofile
echo "export TEST_EN_HOME=" >> /.dtprofile
. /.dtprofile
sed "s|TEST_EN_HOME=.*|TEST_EN_HOME=xxxxxxxx|g" /.dtprofile > tmp
mv tmp /.dtprofile
. /.dtprofile
sleep 1
copy the shell script to your solari machine and keep this in one file (Path.sh)
and execute this file based on your requierment.
in the above shell script "xxxxxxx" keep your vlaue.and "TST_EN_HOME" keep u r varible name.
standared way of calling "Path.sh"file EX:. ./Path.sh
write a shell script like this pass the value how you want.
#! /usr/bin/bash
cp /.dtprofile /.dtprofile_backup
grep -v "export TEST_EN_HOME" /.dtprofile_backup > /.dtprofile
echo "export TEST_EN_HOME=" >> /.dtprofile
. /.dtprofile
sed "s|TEST_EN_HOME=.*|TEST_EN_HOME=xxxxxxxx|g" /.dtprofile > tmp
mv tmp /.dtprofile
. /.dtprofile
sleep 1
copy the shell script to your solari machine and keep this in one file (Path.sh)
and execute this file based on your requierment.
in the above shell script "xxxxxxx" keep your vlaue.and "TST_EN_HOME" keep u r varible name.
standared way of calling "Path.sh"file EX:. ./Path.sh
