How do I launch a java process that has the standard bash shell environment?

后端 未结 3 1083
太阳男子
太阳男子 2021-01-15 20:00

I\'ve tried looking into process builder, but I\'m not sure how to source the bash environment into the process.

For example I\'m using the following to launch my pr

3条回答
  •  温柔的废话
    2021-01-15 20:38

    You need to set up a shell invocation with ProcessBuilder. Execute a command like:

    /bin/bash -l -c "The entire command line that you want to execute"
    

提交回复
热议问题