Forum Discussion
iCall script triggers error need ${HOME} to run
What happens if you call the shell script directly? An example would be "exec /var/tmp/xxx_bash.sh" ... does that retain the environment variable to allow it to run successfully?
- Nikoolayy1Jan 18, 2023MVP
If i run the script myself yes there is no issue as that is the first thing I checked but I have now some leads, so I will do more testing. Still I used "bash script.sh" or "./script.sh" for personal tests, so maybe the "exec" changes the shell, so a nice suggestion.
- G-RobJan 19, 2023Employee
I don't think "exec" necessarily changes the shell, but "exec bash script.sh" vs "exec script.sh" would launch a child BASH process, most likely without the environmental variables you need. Can you try without specifying bash and let me know how it goes?
- Nikoolayy1Jan 19, 2023MVP
Added "HOME=/root <linux bash command>" in the script.sh file and it now works.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com