Write an executable .sh file with Java for OSX

后端 未结 5 1311
情书的邮戳
情书的邮戳 2021-01-18 00:59

So I am trying to write an .sh file that will be executable, this is how I\'m currently writing it:

Writer output = null;

try {
  output = new BufferedWrite         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 01:29

    This answer I wrote for the question how do I programmatically change file permissions shows a chmod example via a native call using jna, which should work on Mac OS X.

提交回复
热议问题