Is there any graphical “sudo” for Mac OS X?

前端 未结 9 766
后悔当初
后悔当初 2020-12-05 07:44

I\'m designing a little software in Java. I don\'t know the term/definition to what I\'m doing, but I\'m prompting commands from Java to the terminal. Something like this:

9条回答
  •  一生所求
    2020-12-05 07:47

    You can more ore less manage to write your own with an AppleScript shell script:

    #!/bin/sh
    osascript -e "do shell script \"$*\" with administrator privileges"
    

    cocoasudo looks aesthetically more pleasing, but this is already deployed.

提交回复
热议问题