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
- :
- Environment variable is not setting by InstallAnywhere
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
Feb 02, 2012
02:08 AM
Environment variable is not setting by InstallAnywhere
Hi,
I am using IA2011 of Linux version. Using Execute Script Action, redirecting env variable to .bash_profile.
echo "export DEV_DIR=/opt/data" >> /root/.bash_profile
source /root/.bash_profile
While executing install.bin, the env variable got redirected into .bash_profile
But when i execute the script with $DEV_DIR, it says No such file or Directory.
For example if the script a.sh has below content,
$DEV_DIR/build/bin/test.sh
when i run ./a.sh, it says test.sh is No such file or Directory. But test.sh file is there in /opt/data/ with full permission
If i run install.bin second time without doing anything. Its working fine
Could you please let me know if i am missing anything.
Regards,
Riaz
I am using IA2011 of Linux version. Using Execute Script Action, redirecting env variable to .bash_profile.
echo "export DEV_DIR=/opt/data" >> /root/.bash_profile
source /root/.bash_profile
While executing install.bin, the env variable got redirected into .bash_profile
But when i execute the script with $DEV_DIR, it says No such file or Directory.
For example if the script a.sh has below content,
$DEV_DIR/build/bin/test.sh
when i run ./a.sh, it says test.sh is No such file or Directory. But test.sh file is there in /opt/data/ with full permission
If i run install.bin second time without doing anything. Its working fine
Could you please let me know if i am missing anything.
Regards,
Riaz
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 08, 2013
09:42 AM
Have you solved it... I'm facing the same problem here...