Not able to set LD_LIBRARY_PATH for Java process

后端 未结 2 430
自闭症患者
自闭症患者 2020-12-18 07:33

I am trying to call my linux executable from shell script. Before calling this executable, I want to set LD_LIBRARY_PATH with specific values. My shell script is as below:

2条回答
  •  盖世英雄少女心
    2020-12-18 08:13

    Are you sure the subprocess is using csh? If it starts up using bash or something else then this would prevent the script from working (but not to throw an IOException).

    You should really aad a hashbang line as the very first line of your script to state which shell interpreter you wish to use.

    eg.

    #!/usr/bin/env csh
    

提交回复
热议问题