margaret gillon wrote:Hi Juan,
I don't think it is normal or a good practice for programs inside the container to execute code outside the container.
margaret gillon wrote:
There are many issues with Linux. First to have to confirm that the software is running on Linux. Then you would have to know what user is running the application and their permissions. Each Linux distribution will have different directory structures so where Tomcat is installed on an Ubunut server is very different from where Tomcat is install on a Redhat server. This can change with the o/s's version, The Tomcat install location on Ubuntu 10.04 is different from the install location on Ubuntu 12. Last , many distributions block .sh files from being executed. On Ubuntu server .sh files are always suspect and Ubuntu stops many of them from running even is the user is an administrator.
Ulf Dittmer wrote:I'm surprised nobody has yet pointed out that you should read and implement ...
Ivan Jozsef Balazs wrote:Doing first a waitFor and then consuming the output looks suspicious.
Another idea is exec'ing the command broken into parts as an array
Ulf Dittmer wrote:I'm surprised nobody has yet pointed out that you should read and implement what's written in this article.