Forum Discussion

krogold's avatar
krogold
Regular Contributor
6 years ago

script unable to detect java VM executable

Hello,   I use ssh commands through groovy scripts in my project and it works pretty well, but now, I encounter a strange problem. I want to execute a shell and it does not work, I have in retu...
  • krogold's avatar
    6 years ago

    Well,

    finally someone could help me (merci Pierre !) and I found the solution :

    when I was echoing path directly in the server I could see

    /bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/bin:/usr/bin/ejre1.8.0_202/bin

    when I was echoing path through SOAP UI and ssh command I could see only

    /usr/bin:/bin:/usr/sbin:/sbin

    (I don't know if it is possible to set this path in SOAP UI settings ? If anyone knows ...)

    anyway, I had to force the path to the wanted value, which can be done using the following command :

    export PATH=$PATH:/usr/bin/X11:/usr/local/bin:/usr/bin/ejre1.8.0_202/bin && <my_command>

    this works as expected.

     

    cheers !  :smileyvery-happy:

     

    Alex